summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_log.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/container_log.go b/libpod/container_log.go
index da3ed3113..769f776d0 100644
--- a/libpod/container_log.go
+++ b/libpod/container_log.go
@@ -78,9 +78,11 @@ func (c *Container) readFromLogFile(options *logs.LogOptions, logChannel chan *l
if options.Follow {
for {
state, err := c.State()
- if err != nil {
+ if err != nil && errors.Cause(err) != define.ErrNoSuchCtr {
logrus.Error(err)
break
+ } else if err != nil {
+ break
}
if state != define.ContainerStateRunning && state != define.ContainerStatePaused {
err := t.Stop()