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:
commit
9187656305
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue