summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-14 06:29:42 -0700
committerGitHub <noreply@github.com>2019-04-14 06:29:42 -0700
commit167ce59416f6e03f4477269e33e9e5cf5b700a86 (patch)
treeae2dabac0563eef391158707980e8bfef8e11a19 /libpod
parenteed8bbf3f9e01d03203a199c04aa886835ffd9b5 (diff)
parent5e6065d9ac1f7c08ddd86c0c5ebb355e7628f9bf (diff)
downloadpodman-167ce59416f6e03f4477269e33e9e5cf5b700a86.tar.gz
podman-167ce59416f6e03f4477269e33e9e5cf5b700a86.tar.bz2
podman-167ce59416f6e03f4477269e33e9e5cf5b700a86.zip
Merge pull request #2928 from giuseppe/fix-umount
oci: fix umount of /sys/kernel
Diffstat (limited to 'libpod')
-rw-r--r--libpod/oci_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci_linux.go b/libpod/oci_linux.go
index 01f7c3649..1f5411c1f 100644
--- a/libpod/oci_linux.go
+++ b/libpod/oci_linux.go
@@ -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)
}
}