Files
.copr
.github
cmd
cni
completions
contrib
dependencies
docs
source
_static
markdown
links
containers-mounts.conf.5.md
podman-attach.1.md
podman-auto-update.1.md
podman-build.1.md
podman-commit.1.md
podman-container-checkpoint.1.md
podman-container-cleanup.1.md
podman-container-exists.1.md
podman-container-prune.1.md
podman-container-restore.1.md
podman-container-runlabel.1.md
podman-container.1.md
podman-cp.1.md
podman-create.1.md
podman-diff.1.md
podman-events.1.md
podman-exec.1.md
podman-export.1.md
podman-generate-kube.1.md
podman-generate-systemd.1.md
podman-generate.1.md
podman-healthcheck-run.1.md
podman-healthcheck.1.md
podman-history.1.md
podman-image-diff.1.md
podman-image-exists.1.md
podman-image-mount.1.md
podman-image-prune.1.md
podman-image-sign.1.md
podman-image-tree.1.md
podman-image-trust.1.md
podman-image-unmount.1.md
podman-image.1.md
podman-images.1.md
podman-import.1.md
podman-info.1.md
podman-init.1.md
podman-inspect.1.md
podman-kill.1.md
podman-load.1.md
podman-login.1.md
podman-logout.1.md
podman-logs.1.md
podman-manifest-add.1.md
podman-manifest-annotate.1.md
podman-manifest-create.1.md
podman-manifest-inspect.1.md
podman-manifest-push.1.md
podman-manifest-remove.1.md
podman-manifest.1.md
podman-mount.1.md
podman-network-create.1.md
podman-network-inspect.1.md
podman-network-ls.1.md
podman-network-rm.1.md
podman-network.1.md
podman-pause.1.md
podman-play-kube.1.md
podman-play.1.md
podman-pod-create.1.md
podman-pod-exists.1.md
podman-pod-inspect.1.md
podman-pod-kill.1.md
podman-pod-pause.1.md
podman-pod-prune.1.md
podman-pod-ps.1.md
podman-pod-restart.1.md
podman-pod-rm.1.md
podman-pod-start.1.md
podman-pod-stats.1.md
podman-pod-stop.1.md
podman-pod-top.1.md
podman-pod-unpause.1.md
podman-pod.1.md
podman-port.1.md
podman-ps.1.md
podman-pull.1.md
podman-push.1.md
podman-remote.1.md
podman-restart.1.md
podman-rm.1.md
podman-rmi.1.md
podman-run.1.md
podman-save.1.md
podman-search.1.md
podman-start.1.md
podman-stats.1.md
podman-stop.1.md
podman-system-connection-add.1.md
podman-system-connection-default.1.md
podman-system-connection-list.1.md
podman-system-connection-remove.1.md
podman-system-connection-rename.1.md
podman-system-connection.1.md
podman-system-df.1.md
podman-system-migrate.1.md
podman-system-prune.1.md
podman-system-renumber.1.md
podman-system-reset.1.md
podman-system-service.1.md
podman-system.1.md
podman-tag.1.md
podman-top.1.md
podman-unmount.1.md
podman-unpause.1.md
podman-unshare.1.md
podman-untag.1.md
podman-version.1.md
podman-volume-create.1.md
podman-volume-inspect.1.md
podman-volume-ls.1.md
podman-volume-prune.1.md
podman-volume-rm.1.md
podman-volume.1.md
podman-wait.1.md
podman.1.md
Commands.rst
Introduction.rst
Reference.rst
Search.rst
Tutorials.rst
conf.py
connection.rst
generate.rst
healthcheck.rst
image.rst
includes.rst
index.rst
managecontainers.rst
manifest.rst
network.rst
play.rst
pod.rst
system.rst
volume.rst
tutorials
varlink
Makefile
Readme.md
dckrman.sh
generate.go
links-to-html.lua
make.bat
play.png
podman-derivative-api
remote-docs.sh
requirements.txt
hack
libpod
logo
nix
pkg
test
utils
vendor
version
.cirrus.yml
.dockerignore
.gitignore
.golangci.yml
.pre-commit-config.yaml
.ubuntu_prepare.sh
API.md
CODE-OF-CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
OWNERS
README.md
RELEASE_NOTES.md
SECURITY.md
Vagrantfile
changelog.txt
commands-demo.md
commands.md
docker
go.mod
go.sum
install.md
rootless.md
transfer.md
troubleshooting.md
podman/docs/source/markdown/podman-system-migrate.1.md
Daniel J Walsh 841eac0af6 Switch references from libpod.conf to containers.conf
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-07-20 15:09:54 -04:00

1.6 KiB

% podman-system-migrate(1)

NAME

podman-system-migrate - Migrate existing containers to a new podman version

SYNOPSIS

podman system migrate [options]

DESCRIPTION

podman system migrate migrates containers to the latest podman version.

podman system migrate takes care of migrating existing containers to the latest version of podman if any change is necessary.

"Rootless Podman uses a pause process to keep the unprivileged namespaces alive. This prevents any change to the /etc/subuid and /etc/subgid files from being propagated to the rootless containers while the pause process is running.

For these changes to be propagated, it is necessary to first stop all running containers associated with the user and to also stop the pause process and delete its pid file. Instead of doing it manually, podman system migrate can be used to stop both the running containers and the pause process. The /etc/subuid and /etc/subgid files can then be edited or changed with usermod to recreate the user namespace with the newly configured mappings.

OPTIONS

--new-runtime=runtime

Set a new OCI runtime for all containers. This can be used after a system upgrade which changes the default OCI runtime to move all containers to the new runtime. There are no guarantees that the containers will continue to work under the new runtime, as some runtimes support differing options and configurations.

SEE ALSO

podman(1), containers.conf(5), usermod(8)

HISTORY

April 2019, Originally compiled by Giuseppe Scrivano (gscrivan at redhat dot com)