mirror of https://github.com/containers/podman.git
Merge pull request #2928 from giuseppe/fix-umount
oci: fix umount of /sys/kernel
This commit is contained in:
commit
167ce59416
|
@ -133,7 +133,7 @@ func (r *OCIRuntime) createContainer(ctr *Container, cgroupParent string, restor
|
|||
continue
|
||||
}
|
||||
err = unix.Unmount(m.Mountpoint, 0)
|
||||
if err != nil {
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
return errors.Wrapf(err, "cannot unmount %s", m.Mountpoint)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue