Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit c094d5a

Browse files
authored
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 Upstream-commit: 6def98ee7d995a121d6aa27655b458944565ae45 Component: engine
2 parents 6c41819 + c49c729 commit c094d5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/engine/container/container_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (container *Container) UnmountIpcMount() error {
190190
if shmPath == "" {
191191
return nil
192192
}
193-
if err = mount.Unmount(shmPath); err != nil && !os.IsNotExist(err) {
193+
if err = mount.Unmount(shmPath); err != nil && !os.IsNotExist(errors.Cause(err)) {
194194
return err
195195
}
196196
return nil

0 commit comments

Comments
 (0)