Do not set tmpcopyup on /dev
Fixes #3229 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
parent
bc7afd6d71
commit
c520e34ea7
|
|
@ -797,7 +797,7 @@ func initFSMounts(inputMounts []spec.Mount) []spec.Mount {
|
|||
if m.Type == TypeBind {
|
||||
m.Options = util.ProcessOptions(m.Options)
|
||||
}
|
||||
if m.Type == TypeTmpfs {
|
||||
if m.Type == TypeTmpfs && filepath.Clean(m.Destination) != "/dev" {
|
||||
m.Options = append(m.Options, "tmpcopyup")
|
||||
}
|
||||
mounts = append(mounts, m)
|
||||
|
|
|
|||
Loading…
Reference in New Issue