SpinTheMic
Pro

Interview practice question

Zombie processes accumulating in a container

Cloud & DevOps · Docker · Intermediate

A container that runs a script spawning many child processes accumulates zombie processes over time. Why, and how do you fix it?

What a strong answer covers

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

  • PID 1 must reap orphaned children.
  • App/script as PID 1 doesn't call wait.
  • Add tini or docker run --init.
  • Fix process management in script.
  • Kubernetes: shareProcessNamespace or init in image.
Practise this topic

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

See all topics