From b04f3cd16c825146db880fbfb6d3c85997f25d58 Mon Sep 17 00:00:00 2001 From: Deng Guangxing Date: Mon, 8 May 2017 11:18:51 +0800 Subject: [PATCH] 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 Upstream-commit: 9771780a01e73200f96c84aa83689b7f34092772 Component: engine --- components/engine/libcontainerd/client_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/libcontainerd/client_linux.go b/components/engine/libcontainerd/client_linux.go index ba52221239..91dc860e30 100644 --- a/components/engine/libcontainerd/client_linux.go +++ b/components/engine/libcontainerd/client_linux.go @@ -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) }