Docker and CI/CD · Junior · Question 35 of 75

What does -d do in docker run -d nginx?

Explanation

Detached mode returns your terminal and prints the container ID. Read the output later with docker logs.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 35

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz