summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/oci.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 88e9c4cf4..b5b5fd81e 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -423,7 +423,7 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error {
out, err := exec.Command(r.path, "state", ctr.ID()).CombinedOutput()
if err != nil {
- if strings.HasSuffix(string(out), "does not exist") {
+ if strings.Contains(string(out), "does not exist") {
ctr.removeConmonFiles()
ctr.state.State = ContainerStateConfigured
return nil