Interview practice question
Container exits immediately after starting
Cloud & DevOps · Docker · Beginner
You run a container, and it stops straight away. How do you find out why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- docker ps -a for exit code.
- docker logs for errors.
- Main process ended (no foreground process).
- Wrong CMD/missing file/config.
- Run interactively to debug.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.