diff options
author | Adrian Reber <areber@redhat.com> | 2018-11-26 15:44:28 +0000 |
---|---|---|
committer | Adrian Reber <adrian@lisas.de> | 2018-11-28 08:00:38 +0100 |
commit | fbe8e23ce6504ad2dd669af01015840544f8f99f (patch) | |
tree | 2c8614b906bbb3d091f965f5aa2b0de071154e22 /cmd | |
parent | 4ed10c5c7aafbbc49555a82b3ac96df6653c6e90 (diff) | |
download | podman-fbe8e23ce6504ad2dd669af01015840544f8f99f.tar.gz podman-fbe8e23ce6504ad2dd669af01015840544f8f99f.tar.bz2 podman-fbe8e23ce6504ad2dd669af01015840544f8f99f.zip |
Fix podman container restore -a
podman container restore -a was using the wrong filter to restore
checkpointed containers. This switches from 'running' containers to
'exited' containers.
Restoring with -a only works if all exited containers have been
checkpointed. Maybe it would make sense to track which containers have
been really checkpointed. This is just to fix '-a' to work at least
if all exited containers have been checkpointed.
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/restore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/restore.go b/cmd/podman/restore.go index afdbc36e0..bc2a71ba0 100644 --- a/cmd/podman/restore.go +++ b/cmd/podman/restore.go @@ -66,7 +66,7 @@ func restoreCmd(c *cli.Context) error { return err } - containers, lastError := getAllOrLatestContainers(c, runtime, libpod.ContainerStateRunning, "checkpointed") + containers, lastError := getAllOrLatestContainers(c, runtime, libpod.ContainerStateExited, "checkpointed") for _, ctr := range containers { if err = ctr.Restore(context.TODO(), options); err != nil { |