Merge pull request #444 from thaJeztah/19.03_backport_fix_unmount_ipc_ignore_enotexist

[19.03 backport] Fix "no such file or directory" warning when unmounting IPC mount
This commit is contained in:
Sebastiaan van Stijn 2020-01-23 20:23:02 +01:00 committed by GitHub
commit 6def98ee7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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