Podman: List all containers
SafeRunning and exited containers, rootless by default for the current user.
podman ps -aWhat each part does
podman pslist containers-ainclude stopped ones
Also known as: podman ps
Podman commands from the Docker & Podman folder.
Running and exited containers, rootless by default for the current user.
podman ps -apodman pslist containers-ainclude stopped onesAlso known as: podman ps
Stream a container's output starting from the last 200 lines.
podman logs -f --tail 200 <container>podman logsshow a container's output-ffollow new lines--tail 200start with the last 200 lines<container>container name or IDAlso known as: podman logs
A pod shares one network namespace between containers, like a Kubernetes pod. Add containers with --pod <pod>.
podman pod create --name <pod> -p <host-port>:<container-port>podman pod createcreate a pod: containers in it share network and localhost--name <pod>the pod's name-p <host-port>:<container-port>publish a port; must be set on the pod, not on its containersAlso known as: podman pod
Writes container-<name>.service so systemd can manage the container.
podman generate systemd --new --files --name <container>podman generate systemdwrite a systemd unit for a container (newer Podman prefers Quadlet files)--newthe unit creates a fresh container on start and removes it on stop--fileswrite .service files to the current directory instead of stdout--name <container>use the container name (not ID) in the unitMy note Deprecated in favour of Quadlet (.container files in ~/.config/containers/systemd/) on Podman 4.4+.
Also known as: podman systemd · quadlet
Store registry credentials for pulls and pushes (auth.json).
podman login <registry> -u <username>podman login <registry>authenticate to a registry, e.g. quay.io-u <username>the user name; prompts for the password (or use --password-stdin)Also known as: podman login · unauthorized
Remove stopped containers, unused pods, images and build cache.
podman system prune -a -fpodman system pruneremove stopped containers, unused pods, networks and dangling images-aalso remove all images not used by a container-fdon't ask for confirmationMy note Add --volumes to delete unused volumes too.
Also known as: podman prune · no space left on device
No commands match these filters.
My DevOps Playbook by Angelo John Calleja