Merge pull request #18076 from rhvgoyal/unmount-recursive
Unmount recursively to unmount volumes
This commit is contained in:
commit
24fb3659df
|
@ -1508,8 +1508,8 @@ func (container *Container) unmountVolumes(forceSyscall bool) error {
|
||||||
|
|
||||||
for _, volumeMount := range volumeMounts {
|
for _, volumeMount := range volumeMounts {
|
||||||
if forceSyscall {
|
if forceSyscall {
|
||||||
if err := system.Unmount(volumeMount.Destination); err != nil {
|
if err := detachMounted(volumeMount.Destination); err != nil {
|
||||||
logrus.Warnf("%s unmountVolumes: Failed to force umount %v", container.ID, err)
|
logrus.Warnf("%s unmountVolumes: Failed to do lazy umount %v", container.ID, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue