Merge pull request #35157 from BSWANG/fix-panic-on-restore
fix panic on get container pid when live restore containers
This commit is contained in:
commit
fa2df86ab6
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ func (daemon *Daemon) getPidContainer(container *container.Container) (*containe
|
|||
containerID := container.HostConfig.PidMode.Container()
|
||||
container, err := daemon.GetContainer(containerID)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "cannot join PID of a non running container: %s", container.ID)
|
||||
return nil, errors.Wrapf(err, "cannot join PID of a non running container: %s", containerID)
|
||||
}
|
||||
return container, daemon.checkContainer(container, containerIsRunning, containerIsNotRestarting)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue