mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
no need to save container state here
it is already being saved (with a lock held) on the subsequent operations. Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
This commit is contained in:
parent
201a37f7a1
commit
f668af4475
1 changed files with 0 additions and 5 deletions
|
@ -332,11 +332,6 @@ func (container *Container) UpdateContainer(hostConfig *containertypes.HostConfi
|
||||||
container.HostConfig.RestartPolicy = hostConfig.RestartPolicy
|
container.HostConfig.RestartPolicy = hostConfig.RestartPolicy
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := container.ToDisk(); err != nil {
|
|
||||||
logrus.Errorf("Error saving updated container: %v", err)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue