瀏覽代碼

Merge pull request #22433 from rhatdan/labels

We should always return the MountLabel
Sebastiaan van Stijn 9 年之前
父節點
當前提交
926725b470
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      container/container.go

+ 0 - 3
container/container.go

@@ -340,9 +340,6 @@ func (container *Container) GetProcessLabel() string {
 // GetMountLabel returns the mounting label for the container.
 // This label is empty if the container is privileged.
 func (container *Container) GetMountLabel() string {
-	if container.HostConfig.Privileged {
-		return ""
-	}
 	return container.MountLabel
 }