Do not ignore errors from graphdriver.Put

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: ac4b2905528457d9dba252c1590b9ac143372d0b
Component: engine
This commit is contained in:
Alexander Morozov
2015-10-29 11:25:53 -07:00
parent 09de1db703
commit b276a5731c
+6 -2
View File
@@ -992,13 +992,17 @@ func (daemon *Daemon) createRootfs(container *Container) error {
}
if err := setupInitLayer(initPath, rootUID, rootGID); err != nil {
daemon.driver.Put(initID)
if err := daemon.driver.Put(initID); err != nil {
logrus.Errorf("Failed to Put init layer: %v", err)
}
return err
}
// We want to unmount init layer before we take snapshot of it
// for the actual container.
daemon.driver.Put(initID)
if err := daemon.driver.Put(initID); err != nil {
return err
}
if err := daemon.driver.Create(container.ID, initID); err != nil {
return err