SpinTheMic
Pro

Interview practice question

Container keeps restarting

Cloud & DevOps · Docker · Beginner

A container with restart policy "always" keeps restarting every few seconds. How do you investigate?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • docker ps shows restarting status.
  • docker logs for crash reason.
  • docker inspect for exit code, OOMKilled.
  • Check config, dependencies (DB reachable?).
  • Temporarily disable restart to debug.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics