Skip to content

Commit

Permalink
Merge pull request docker#8850 from shuai-z/clean-mount
Browse files Browse the repository at this point in the history
Clear the internal state before raising error.
  • Loading branch information
Jessie Frazelle committed Oct 31, 2014
2 parents aca253d + 05ff40b commit f68b8b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f68b8b3

Please sign in to comment.