mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #23624 from coolljt0725/fix_restore_sandbox
check running again before restore active sandbox
This commit is contained in:
commit
74c4834d32
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ func (daemon *Daemon) restore() error {
|
|||
logrus.Errorf("Failed to restore with containerd: %q", err)
|
||||
return
|
||||
}
|
||||
if !c.HostConfig.NetworkMode.IsContainer() {
|
||||
if !c.HostConfig.NetworkMode.IsContainer() && c.IsRunning() {
|
||||
options, err := daemon.buildSandboxOptions(c)
|
||||
if err != nil {
|
||||
logrus.Warnf("Failed build sandbox option to restore container %s: %v", c.ID, err)
|
||||
|
|
Loading…
Reference in a new issue