podman/pkg/adapter
Adrian Reber bef83c42ea
migration: add possibility to restore a container with a new name
The option to restore a container from an external checkpoint archive
(podman container restore -i /tmp/checkpoint.tar.gz) restores a
container with the same name and same ID as id had before checkpointing.

This commit adds the option '--name,-n' to 'podman container restore'.
With this option the restored container gets the name specified after
'--name,-n' and a new ID. This way it is possible to restore one
container multiple times.

If a container is restored with a new name Podman will not try to
request the same IP address for the container as it had during
checkpointing. This implicitly assumes that if a container is restored
from a checkpoint archive with a different name, that it will be
restored multiple times and restoring a container multiple times with
the same IP address will fail as each IP address can only be used once.

Signed-off-by: Adrian Reber <areber@redhat.com>
2019-06-04 14:02:51 +02:00
..
shortcuts Implement podman-remote rm 2019-04-09 11:55:26 -07:00
checkpoint_restore.go migration: add possibility to restore a container with a new name 2019-06-04 14:02:51 +02:00
client.go Add connection information to podman-remote info 2019-05-16 11:03:22 -07:00
client_config.go Add connection information to podman-remote info 2019-05-16 11:03:22 -07:00
containers.go migration: add possibility to restore a container with a new name 2019-06-04 14:02:51 +02:00
containers_remote.go Added support to migrate containers 2019-06-03 22:05:12 +02:00
errors.go enable integration tests for remote-client 2019-05-07 14:06:02 -05:00
images.go podman-remote image tree 2019-04-04 14:41:50 -05:00
images_remote.go podman-remote image tree 2019-04-04 14:41:50 -05:00
info_remote.go enable integration tests for remote-client 2019-05-07 14:06:02 -05:00
pods.go Refactor of 'podman prune' to better support remote 2019-04-18 15:13:56 -07:00
pods_remote.go enable integration tests for remote-client 2019-05-07 14:06:02 -05:00
runtime.go Add connection information to podman-remote info 2019-05-16 11:03:22 -07:00
runtime_remote.go Fixup Flags 2019-05-20 13:53:32 -04:00
runtime_remote_supported.go enable podman-remote on windows 2019-04-30 15:28:39 -05:00
sigproxy_linux.go enable podman-remote on windows 2019-04-30 15:28:39 -05:00
terminal.go enable podman-remote on windows 2019-04-30 15:28:39 -05:00
terminal_linux.go enable podman-remote on windows 2019-04-30 15:28:39 -05:00
volumes_remote.go Enable more podman-remote pod commands 2019-02-22 17:00:24 -06:00