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

Category: Kubernetes & Containers

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

Run a detached container

Starts a container named web from the nginx image in the background, mapping host port 8080 to the container's port 80. The -d flag detaches, so your terminal stays free. Check it with podman ps and podman logs -f web.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.