What does the -d flag do here?
docker run -d -p 8080:80 nginx
- Run detached (in the background)
- Delete the container once it exits
- Enable extra debug log output now
- Attach an interactive terminal session
-d runs the container detached; -p maps host:container ports.
Play DevOps ▸