Run container rootless

Start a detached nginx container without root privileges

podman run -d --name web -p 8080:80 nginx:alpine

tool
podman16 commands
tags
podmancontainers

More podman commands

  • podman build -t myapp:latest -f Containerfile .

    Build from a Containerfile (Dockerfile-compatible)

  • 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

all 16 podman commands