Merge pull request #21794 from coolljt0725/cleanipc_quiet
Don't throw error on clenaup ipc mounts if it does not exists
This commit is contained in:
commit
02297d5a33
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ func (container *Container) UnmountIpcMounts(unmount func(pth string) error) {
|
|||
logrus.Error(err)
|
||||
warnings = append(warnings, err.Error())
|
||||
} else if shmPath != "" {
|
||||
if err := unmount(shmPath); err != nil {
|
||||
if err := unmount(shmPath); err != nil && !os.IsNotExist(err) {
|
||||
warnings = append(warnings, fmt.Sprintf("failed to umount %s: %v", shmPath, err))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue