mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #17630 from LK4D4/syscall_umount_warn
Do not ignore error from syscall.Unmount
This commit is contained in:
commit
c9208953fa
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue