mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't throw error on clenaup ipc mounts if it does not exists
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
81b01b44c6
commit
5bd1786387
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)
|
logrus.Error(err)
|
||||||
warnings = append(warnings, err.Error())
|
warnings = append(warnings, err.Error())
|
||||||
} else if shmPath != "" {
|
} 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))
|
warnings = append(warnings, fmt.Sprintf("failed to umount %s: %v", shmPath, err))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue