1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #39653 from thaJeztah/fix_unmount_ipc_ignore_enotexist

Fix "no such file or directory" warning when unmounting IPC mount
This commit is contained in:
Brian Goff 2019-08-05 11:51:28 -07:00 committed by GitHub
commit 88d093cbb4
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