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.
-
Most asked Write a production Dockerfile for a Python web app: small, non-root and cache-friendly.
Use a multi-stage build: install dependencies into a virtual environment in a builder stage, copy only that and the application into a slim runtime image, order layers so dependency installs are…