From 3639859622bf1b42c90088295b27efc0882087f6 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 2 Mar 2018 10:19:34 -0500 Subject: Instead of erroring on exit file not being found, warn Erroring can cause us to get into an state where a container which has no exit file cannot be shown in PS, cannot be removed, etc. Signed-off-by: Matthew Heon Closes: #438 Approved by: rhatdan --- libpod/oci.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libpod/oci.go b/libpod/oci.go index 4f49a81e4..b808d878e 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -394,7 +394,8 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error { if err != nil { ctr.state.ExitCode = -1 ctr.state.FinishedTime = time.Now() - return errors.Wrapf(err, "no exit file for container %s found", ctr.ID()) + logrus.Errorf("No exit file for container %s found: %v", ctr.ID()) + return nil } ctr.state.FinishedTime = getFinishedTime(fi) -- cgit v1.2.3-54-g00ecf