Explorar o código

Merge pull request #8850 from shuai-z/clean-mount

Clear the internal state before raising error.
Jessie Frazelle %!s(int64=10) %!d(string=hai) anos
pai
achega
f68b8b33e6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      daemon/daemon.go

+ 1 - 0
daemon/daemon.go

@@ -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)
 	}