Create a pod and run a container in it
Put containers into one pod so they share the same network namespace
podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpine
- tool
- podman16 commands
- tags
- podmancontainers
More podman commands
-
podman image inspect myapp:latest | jq '.[0].RootFS.Layers'List the filesystem layers of an image
-
podman ps -a --format '{{.Names}}\t{{.Status}}\t{{.Image}}'Show every container with its name, status and image
-
podman container prune -fDelete all exited containers without asking for confirmation
-
podman login registry.example.com -u myuserLog in to a container registry with your username
-
podman generate systemd --new --files --name <name>Write a portable .service file that creates the container again on each start; the newer way is Quadlet