mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Do not ignore errors from graphdriver.Put
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
8d62f243c7
commit
ac4b290552
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue