diff options
Diffstat (limited to 'cmd/podman/stats.go')
-rw-r--r-- | cmd/podman/stats.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/stats.go b/cmd/podman/stats.go index cb89b8a9d..6d54147f6 100644 --- a/cmd/podman/stats.go +++ b/cmd/podman/stats.go @@ -138,6 +138,10 @@ func statsCmd(c *cli.Context) error { id := ctr.ID() if _, ok := containerStats[ctr.ID()]; !ok { initialStats, err := ctr.GetContainerStats(&libpod.ContainerStats{}) + if errors.Cause(err) == libpod.ErrCtrRemoved || errors.Cause(err) == libpod.ErrNoSuchCtr { + // skip dealing with a container that is gone + continue + } if err != nil { return err } |