Merge pull request #2928 from giuseppe/fix-umount

oci: fix umount of /sys/kernel
This commit is contained in:
OpenShift Merge Robot 2019-04-14 06:29:42 -07:00 committed by GitHub
commit 167ce59416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}