Run a container as a systemd unit
Write a portable .service file that creates the container again on each start; the newer way is Quadlet
podman generate systemd --new --files --name <name>
- tool
- podman16 commands
More podman commands
-
podman generate kube <pod> > pod.yamlTurn a running pod into a Kubernetes manifest to move it to a cluster
-
podman play kube pod.yaml --replaceStart pods and services from a Kubernetes manifest without a cluster; --replace recreates them from scratch
-
podman unshare cat /proc/self/uid_map; cat /etc/subuidShow the user namespace UID range behind rootless containers; fix file permissions with chown inside podman unshare
-
podman auto-update --dry-run && systemctl --user start podman-auto-updatePull newer images and restart labeled containers; they need the io.containers.autoupdate=registry label
-
podman system migrateUpdate the OCI runtime and user namespace config after a podman or kernel upgrade; fixes stuck containers