Interview Q&A · questions with model answers

Docker Interview Questions

Part of the study plan for: DevOps Engineer · Site Reliability Engineer (SRE) · Cloud Engineer · Backend Engineer · Full Stack Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Why does PID 1 matter in containers, and what problems can it cause?

    The container's main process runs as PID 1, which Linux treats specially: it does not get default signal handlers (signals it does not handle are ignored, so SIGTERM may do nothing), and it is…

  2. Why is mounting the Docker socket into a container dangerous?

    /var/run/docker.sock is the Docker daemon's API. Any process that can use it can start a privileged container that mounts the host's root filesystem, which means full root access to the host.…

Was this page helpful?

Report a mistake