Interview question
This question is step 3 of the course “Docker from scratch”Why docker run -d
What does the -d flag of docker run do? What happens if you start a web server without it and then press Ctrl+C or close the terminal? And why does a container started with -d from the alpine image without a command still end up in the Exited status right away?
Just like in an interview: answer in your own words, and the AI will mark which key points you covered. To pass, cover more than half of them.