spiegel_podman/pkg
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
..
annotations Spelling 2020-12-22 13:34:31 -05:00
api Include named volumes in container migration 2021-01-07 07:51:19 +00:00
auth Add X-Registry-Config support 2020-09-29 08:46:44 -07:00
autoupdate Spelling 2020-12-22 13:34:31 -05:00
bindings Rework pruning to report reclaimed space 2020-12-30 19:57:35 -06:00
cgroups Spelling 2020-12-22 13:34:31 -05:00
channel fix closed the remote connection on pull causes service panic 2020-10-03 11:38:38 +08:00
checkpoint Include named volumes in container migration 2021-01-07 07:51:19 +00:00
copy Spelling 2020-12-22 13:34:31 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain Include named volumes in container migration 2021-01-07 07:51:19 +00:00
env Ensure DefaultEnvVariables is used in Specgen 2020-08-18 15:17:46 -04:00
errorhandling remote copy 2020-12-18 12:08:49 +01:00
hooks Spelling 2020-12-22 13:34:31 -05:00
inspect Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
lookup Turn on More linters 2020-06-15 07:05:56 -04:00
namespaces [CI:DOCS] BZ1860126 - Fix userns defaults in run man page 2020-08-07 15:42:13 -04:00
netns Spelling 2020-12-22 13:34:31 -05:00
parallel Move pod jobs to parallel execution 2020-10-07 10:00:11 -04:00
ps Consolidate filter logic to pkg subdirectory 2020-12-24 20:27:41 +00:00
registrar Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
registries pkg/registries: add a retiring note 2020-09-30 16:30:41 +02:00
resolvconf Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rootless Spelling 2020-12-22 13:34:31 -05:00
rootlessport rootlessport: use two different channels 2020-04-29 12:35:23 +02:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal Fix build for mips architecture 2020-12-21 15:55:18 +01:00
specgen Merge pull request #8892 from mheon/fix_8886 2021-01-06 15:26:55 -05:00
systemd generate systemd: do not set KillMode 2021-01-05 16:37:24 +01:00
terminal Refine public key usage when remote 2020-12-10 15:32:37 -07:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust image sign using per user registries.d 2020-12-07 09:58:38 -05:00
util Spelling 2020-12-22 13:34:31 -05:00