docker run --name myapp -d nginx

Category: Docker

docker run --name myapp -d nginx

Run nginx in detached mode with a custom container name

Starts a container named 'myapp' running in the background. -d means detached (runs without occupying your terminal).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.