Generate systemd unit podman
Create a systemd unit to manage the container lifecycle
podman generate systemd --new --name web > ~/.config/systemd/user/web.service
more podman
all 16 commands →
Play Kubernetes YAML
podman play kube deployment.yaml
Export pod as Kubernetes YAML
podman generate kube mypod > pod.yaml
Create and use a pod
podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpine
Inspect image layers
podman image inspect myapp:latest | jq '.[0].RootFS.Layers'
List all containers including stopped
podman ps -a --format '{{.Names}}\t{{.Status}}\t{{.Image}}'