Browse code

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

Clear the internal state before raising error.

Jessie Frazelle authored on 2014/10/31 10:01:01
Showing 1 changed files
... ...
@@ -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
 	}