Kaynağa Gözat

AMBARI-8620. weird directory suggestions upon Docker containers (alexantonenko)

Alex Antonenko 10 yıl önce
ebeveyn
işleme
d4607e5f14
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      ambari-web/app/models/service_config.js

+ 1 - 0
ambari-web/app/models/service_config.js

@@ -781,6 +781,7 @@ App.ServiceConfigProperty = Em.Object.extend({
 
       mountPointsPerHost = mountPointsPerHost.filter(function (mPoint) {
         return !(['/', '/home'].contains(mPoint.mountpoint)
+        || ['/etc/resolv.conf', '/etc/hostname', '/etc/hosts'].contains(mPoint.mountpoint) // docker specific mount points
         || mPoint.mountpoint && (mPoint.mountpoint.startsWith('/boot') || mPoint.mountpoint.startsWith('/mnt'))
         || ['devtmpfs', 'tmpfs', 'vboxsf', 'CDFS'].contains(mPoint.type)
         || mPoint.available == 0);