Browse Source

Merge pull request #39653 from thaJeztah/fix_unmount_ipc_ignore_enotexist

Fix "no such file or directory" warning when unmounting IPC mount
Brian Goff 6 years ago
parent
commit
88d093cbb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      container/container_unix.go

+ 1 - 1
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