Build image

Build from a Containerfile (Dockerfile-compatible)

podman build -t myapp:latest -f Containerfile .

tool
podman16 commands
tags
podmancontainers

More podman commands

  • podman generate systemd --new --name web > ~/.config/systemd/user/web.service

    Create a systemd unit to manage the container lifecycle

  • podman play kube deployment.yaml

    Run a pod from a Kubernetes manifest (local testing)

  • podman generate kube mypod > pod.yaml

    Generate a Kubernetes-compatible manifest from a running pod

  • podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpine

    Group containers into a pod sharing network namespace

  • podman image inspect myapp:latest | jq '.[0].RootFS.Layers'

    List filesystem layers of an image

all 16 podman commands