Do not rely on "live" event anymore

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: 64483c3bdaa1887b8b932e0564362fbbff025dc0
Component: engine
This commit is contained in:
Kenfe-Mickael Laventure
2016-07-19 08:24:39 -07:00
parent 7262ef8faa
commit 32ecbd59e9
4 changed files with 137 additions and 64 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ func (daemon *Daemon) restore() error {
rm := c.RestartManager(false)
if c.IsRunning() || c.IsPaused() {
if err := daemon.containerd.Restore(c.ID, libcontainerd.WithRestartManager(rm)); err != nil {
logrus.Errorf("Failed to restore with containerd: %q", err)
logrus.Errorf("Failed to restore %s with containerd: %s", c.ID, err)
return
}
if !c.HostConfig.NetworkMode.IsContainer() && c.IsRunning() {