Docker and CI/CD · Junior · Question 35 of 75
What does -d do in docker run -d nginx?
- ✓Correct answer: Runs the container in the background
- 2Deletes the container when it exits
- 3Enables debug logging for the container
Explanation
Detached mode returns your terminal and prints the container ID. Read the output later with docker logs.