зеркало из https://github.com/microsoft/docker.git
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:
Родитель
81b01b44c6
Коммит
5bd1786387
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче