fix inconsistent state string with containerd
should be `stopped` according to containerd: https://github.com/containerd/containerd/blob/v0.2.x/runtime/runtime.go#L104 Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
This commit is contained in:
parent
2c45392b8f
commit
9771780a01
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ func (clnt *client) Restore(containerID string, attachStdio StdioCallback, optio
|
|||
cont, err := clnt.getContainerdContainer(containerID)
|
||||
// Get its last event
|
||||
ev, eerr := clnt.getContainerLastEvent(containerID)
|
||||
if err != nil || cont.Status == "Stopped" {
|
||||
if err != nil || cont.Status == "stopped" {
|
||||
if err != nil {
|
||||
logrus.Warnf("libcontainerd: failed to retrieve container %s state: %v", containerID, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue