This is a spiritual backport of acbfe6bc56b9357d40a452f6b3901cb2c2d40404
The afformentioned commit was not cherry-picked because it is a broader
change to the codebase, whereas this is the same basic fix but localized
to the local volume driver.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
| ... | ... |
@@ -353,7 +353,7 @@ func (v *localVolume) Unmount(id string) error {
|
| 353 | 353 |
|
| 354 | 354 |
func (v *localVolume) unmount() error {
|
| 355 | 355 |
if v.opts != nil {
|
| 356 |
- if err := mount.Unmount(v.path); err != nil {
|
|
| 356 |
+ if err := unmount(v.path); err != nil {
|
|
| 357 | 357 |
if mounted, mErr := mount.Mounted(v.path); mounted || mErr != nil {
|
| 358 | 358 |
return errors.Wrapf(err, "error while unmounting volume path '%s'", v.path) |
| 359 | 359 |
} |