Merge pull request #16639 from mrunalp/skip_dev_setup

Skip /dev setup in container when it is bind mounted in
This commit is contained in:
Alexander Morozov 2015-11-17 11:36:00 -08:00
commit 9187656305

View file

@ -279,6 +279,7 @@ func (d *Driver) setupMounts(container *configs.Config, c *execdriver.Command) e
for _, m := range container.Mounts {
if _, ok := userMounts[m.Destination]; !ok {
if mountDev && strings.HasPrefix(m.Destination, "/dev/") {
container.Devices = nil
continue
}
defaultMounts = append(defaultMounts, m)