mirror of
https://github.com/docker/cli.git
synced 2026-09-26 01:10:35 -04:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user