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:
commit
6def98ee7d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue