|
@@ -15,7 +15,6 @@ import (
|
|
|
"github.com/docker/docker/pkg/chrootarchive"
|
|
|
"github.com/docker/docker/pkg/symlink"
|
|
|
"github.com/docker/docker/volumes"
|
|
|
- "github.com/docker/libcontainer/label"
|
|
|
)
|
|
|
|
|
|
type Mount struct {
|
|
@@ -344,12 +343,6 @@ func (container *Container) setupMounts() error {
|
|
|
mounts = append(mounts, execdriver.Mount{Source: container.HostsPath, Destination: "/etc/hosts", Writable: true, Private: true})
|
|
|
}
|
|
|
|
|
|
- for _, m := range mounts {
|
|
|
- if err := label.SetFileLabel(m.Source, container.MountLabel); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
container.command.Mounts = mounts
|
|
|
return nil
|
|
|
}
|