diff options
author | Adrian Reber <areber@redhat.com> | 2019-02-05 17:20:31 +0000 |
---|---|---|
committer | Adrian Reber <areber@redhat.com> | 2019-06-03 22:05:13 +0200 |
commit | a4d33330d6886ab90f7d90ef686f2eee4dda683b (patch) | |
tree | b8a79c634cede97382485c59163c986e93852b1a /docs/tutorials | |
parent | 42e903decb8765b1c00d8aa9bc004bb25b1d33f9 (diff) | |
download | podman-a4d33330d6886ab90f7d90ef686f2eee4dda683b.tar.gz podman-a4d33330d6886ab90f7d90ef686f2eee4dda683b.tar.bz2 podman-a4d33330d6886ab90f7d90ef686f2eee4dda683b.zip |
Include container migration into tutorial
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'docs/tutorials')
-rw-r--r-- | docs/tutorials/podman_tutorial.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/tutorials/podman_tutorial.md b/docs/tutorials/podman_tutorial.md index 032b7c851..8b29264db 100644 --- a/docs/tutorials/podman_tutorial.md +++ b/docs/tutorials/podman_tutorial.md @@ -96,6 +96,28 @@ After being restored, the container will answer requests again as it did before curl http://<IP_address>:8080 ``` +### Migrate the container +To live migrate a container from one host to another the container is checkpointed on the source +system of the migration, transferred to the destination system and then restored on the destination +system. When transferring the checkpoint, it is possible to specify an output-file. + +On the source system: +```console +sudo podman container checkpoint <container_id> -e /tmp/checkpoint.tar.gz +scp /tmp/checkpoint.tar.gz <destination_system>:/tmp +``` + +On the destination system: +```console +sudo podman container restore -i /tmp/checkpoint.tar.gz +``` + +After being restored, the container will answer requests again as it did before checkpointing. This +time the container will continue to run on the destination system. +```console +curl http://<IP_address>:8080 +``` + ### Stopping the container To stop the httpd container: ```console |