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>
... | ... |
@@ -467,7 +467,7 @@ func (clnt *client) Restore(containerID string, attachStdio StdioCallback, optio |
467 | 467 |
cont, err := clnt.getContainerdContainer(containerID) |
468 | 468 |
// Get its last event |
469 | 469 |
ev, eerr := clnt.getContainerLastEvent(containerID) |
470 |
- if err != nil || cont.Status == "Stopped" { |
|
470 |
+ if err != nil || cont.Status == "stopped" { |
|
471 | 471 |
if err != nil { |
472 | 472 |
logrus.Warnf("libcontainerd: failed to retrieve container %s state: %v", containerID, err) |
473 | 473 |
} |