$ ./guess_the_languageDevOps
DevOps · medium · #3

What does the -d flag do here?

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