Images and containers, Dockerfiles, layers, volumes, networking and Compose. Each question has an answer you can say out loud, the reasoning, and the follow-ups to expect.
Also coverscontainersDockerfileDocker Composecontainerization
Docker questions come up in backend, DevOps and full-stack interviews alike. Interviewers want to know whether you understand what an image and a container really are, how a Dockerfile builds layers, how data survives a container being replaced, and how to keep images small and secure.
Each answer here starts with the version you can say in one breath, then explains why, with real Dockerfile and command-line examples, the common mistake, and the follow-ups to expect.