From 5e6065d9ac1f7c08ddd86c0c5ebb355e7628f9bf Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sun, 14 Apr 2019 09:53:58 +0200 Subject: oci: fix umount of /sys/kernel if the mount was already umounted as part of the cleanup (i.e. being a submount), the umount would fail. Signed-off-by: Giuseppe Scrivano --- libpod/oci_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') 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) } } -- cgit v1.2.3-54-g00ecf