Docker 29 · Containers

Run a container in the background

Start a named container and publish host port 8080 to container port 80.

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

Official Docker 29 documentation

More containers commands

All containers commands · Docker 29 cheatsheet

Was this page helpful?