mirror of https://github.com/containers/podman.git
This commit adds an option to the checkpoint command to export a checkpoint into a tar.gz file as well as importing a checkpoint tar.gz file during restore. With all checkpoint artifacts in one file it is possible to easily transfer a checkpoint and thus enabling container migration in Podman. With the following steps it is possible to migrate a running container from one system (source) to another (destination). Source system: * podman container checkpoint -l -e /tmp/checkpoint.tar.gz * scp /tmp/checkpoint.tar.gz destination:/tmp Destination system: * podman pull 'container-image-as-on-source-system' * podman container restore -i /tmp/checkpoint.tar.gz The exported tar.gz file contains the checkpoint image as created by CRIU and a few additional JSON files describing the state of the checkpointed container. Now the container is running on the destination system with the same state just as during checkpointing. If the container is kept running on the source system with the checkpoint flag '-R', the result will be that the same container is running on two different hosts. Signed-off-by: Adrian Reber <areber@redhat.com> |
||
---|---|---|
.. | ||
shortcuts | ||
checkpoint_restore.go | ||
client.go | ||
client_config.go | ||
containers.go | ||
containers_remote.go | ||
errors.go | ||
images.go | ||
images_remote.go | ||
info_remote.go | ||
pods.go | ||
pods_remote.go | ||
runtime.go | ||
runtime_remote.go | ||
runtime_remote_supported.go | ||
sigproxy_linux.go | ||
terminal.go | ||
terminal_linux.go | ||
volumes_remote.go |