SpinTheMic
Pro

Interview practice question

Debugging a container that has no shell

Cloud & DevOps · Docker · Intermediate

A production container built from a distroless image is misbehaving, and you cannot exec into it because there is no shell. How do you debug it?

What a strong answer covers

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

  • Logs and metrics first.
  • Ephemeral debug container sharing namespaces (kubectl debug, docker debug).
  • Run debug variant of image.
  • Copy files out (docker cp).
  • Inspect from host (nsenter).
Practise this topic

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

See all topics