diff --git a/container/container_unix.go b/container/container_unix.go index b5c9b66b58..3fc6c91e72 100644 --- a/container/container_unix.go +++ b/container/container_unix.go @@ -190,7 +190,7 @@ func (container *Container) UnmountIpcMount() error { if shmPath == "" { return nil } - if err = mount.Unmount(shmPath); err != nil && !os.IsNotExist(err) { + if err = mount.Unmount(shmPath); err != nil && !os.IsNotExist(errors.Cause(err)) { return err } return nil