From fbe8e23ce6504ad2dd669af01015840544f8f99f Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Mon, 26 Nov 2018 15:44:28 +0000 Subject: 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 --- cmd/podman/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 { -- cgit v1.2.3-54-g00ecf