mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #18076 from rhvgoyal/unmount-recursive
Unmount recursively to unmount volumes
This commit is contained in:
commit
24fb3659df
1 changed files with 2 additions and 2 deletions
|
@ -1508,8 +1508,8 @@ func (container *Container) unmountVolumes(forceSyscall bool) error {
|
|||
|
||||
for _, volumeMount := range volumeMounts {
|
||||
if forceSyscall {
|
||||
if err := system.Unmount(volumeMount.Destination); err != nil {
|
||||
logrus.Warnf("%s unmountVolumes: Failed to force umount %v", container.ID, err)
|
||||
if err := detachMounted(volumeMount.Destination); err != nil {
|
||||
logrus.Warnf("%s unmountVolumes: Failed to do lazy umount %v", container.ID, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue