Merge pull request #17630 from LK4D4/syscall_umount_warn
Do not ignore error from syscall.Unmount Upstream-commit: c9208953fac6174bb205bd1b3705f81a602869c2 Component: engine
This commit is contained in:
@ -1168,7 +1168,9 @@ func (container *Container) unmountVolumes(forceSyscall bool) error {
|
||||
|
||||
for _, volumeMount := range volumeMounts {
|
||||
if forceSyscall {
|
||||
system.Unmount(volumeMount.Destination)
|
||||
if err := system.Unmount(volumeMount.Destination); err != nil {
|
||||
logrus.Warnf("%s unmountVolumes: Failed to force umount %v", container.ID, err)
|
||||
}
|
||||
}
|
||||
|
||||
if volumeMount.Volume != nil {
|
||||
|
||||
Reference in New Issue
Block a user