Clear the internal state before raising error.
| ... | ... |
@@ -970,6 +970,7 @@ func (daemon *Daemon) Mount(container *Container) error {
|
| 970 | 970 |
if container.basefs == "" {
|
| 971 | 971 |
container.basefs = dir |
| 972 | 972 |
} else if container.basefs != dir {
|
| 973 |
+ daemon.driver.Put(container.ID) |
|
| 973 | 974 |
return fmt.Errorf("Error: driver %s is returning inconsistent paths for container %s ('%s' then '%s')",
|
| 974 | 975 |
daemon.driver, container.ID, container.basefs, dir) |
| 975 | 976 |
} |