Create and use a pod

Group containers into a pod sharing 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 filesystem layers of an image

  • podman ps -a --format '{{.Names}}\t{{.Status}}\t{{.Image}}'

    Show all containers with name, status and image

  • podman container prune -f

    Non-interactively delete all exited containers

  • podman login registry.example.com -u myuser

    Authenticate with a container registry

  • podman generate systemd --new --files --name <name>

    Emit a portable .service that recreates the container on start; note: Quadlet is the modern way

all 16 podman commands