spiegel_podman/pkg/api/handlers/libpod
Radostin Stoyanov 288ccc4c84 Include named volumes in container migration
When migrating a container with associated volumes, the content of
these volumes should be made available on the destination machine.

This patch enables container checkpoint/restore with named volumes
by including the content of volumes in checkpoint file. On restore,
volumes associated with container are created and their content is
restored.

The --ignore-volumes option is introduced to disable this feature.

Example:

 # podman container checkpoint --export checkpoint.tar.gz <container>

The content of all volumes associated with the container are included
in `checkpoint.tar.gz`

 # podman container checkpoint --export checkpoint.tar.gz --ignore-volumes <container>

The content of volumes is not included in `checkpoint.tar.gz`. This is
useful, for example, when the checkpoint/restore is performed on the
same machine.

 # podman container restore --import checkpoint.tar.gz

The associated volumes will be created and their content will be
restored. Podman will exit with an error if volumes with the same
name already exist on the system or the content of volumes is not
included in checkpoint.tar.gz

 # podman container restore --ignore-volumes --import checkpoint.tar.gz

Volumes associated with container must already exist. Podman will not
create them or restore their content.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2021-01-07 07:51:19 +00:00
..
containers.go Include named volumes in container migration 2021-01-07 07:51:19 +00:00
containers_create.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
containers_stats.go Lowercase some errors 2020-10-05 15:56:44 -07:00
copy.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
generate.go generate kube on multiple containers 2020-12-07 11:34:39 -06:00
healthcheck.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
images.go Rework pruning to report reclaimed space 2020-12-30 19:57:35 -06:00
images_pull.go libpod API: pull: fix channel race 2021-01-04 17:46:24 +01:00
info.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
manifests.go fix allowing inspect manifest of non-local image 2020-09-30 14:12:32 -04:00
networks.go podman network label support 2020-11-28 18:35:43 +01:00
play.go Add an option to control if play kube should start the pod 2020-11-17 20:00:58 +01:00
pods.go Move pod jobs to parallel execution 2020-10-07 10:00:11 -04:00
swagger.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system.go Rework pruning to report reclaimed space 2020-12-30 19:57:35 -06:00
volumes.go Rework pruning to report reclaimed space 2020-12-30 19:57:35 -06:00