mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #8850 from shuai-z/clean-mount
Clear the internal state before raising error.
This commit is contained in:
commit
f68b8b33e6
1 changed files with 1 additions and 0 deletions
|
@ -970,6 +970,7 @@ func (daemon *Daemon) Mount(container *Container) error {
|
|||
if container.basefs == "" {
|
||||
container.basefs = dir
|
||||
} else if container.basefs != dir {
|
||||
daemon.driver.Put(container.ID)
|
||||
return fmt.Errorf("Error: driver %s is returning inconsistent paths for container %s ('%s' then '%s')",
|
||||
daemon.driver, container.ID, container.basefs, dir)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue