Containers · Docker interview questions

27 Containers · Docker questions from the MLOps & Integration bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Image?

Junior
  1. A.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  2. B.a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal
  3. C.a runnable instance of an image with its own writable layer, network and process space
  4. D.a service such as Docker Hub or ECR that stores and distributes container images

Answer + AI explanation with Pro

2. Which term means: "a read-only template of layers bundling an app and its dependencies, built from a Dockerfile"?

Junior
  1. A.Multi-stage build
  2. B.Image
  3. C.Layer caching
  4. D.OCI image spec

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Image — reuse of unchanged image layers across builds so only changed instructions rebuild
  2. B.Image — a runnable instance of an image with its own writable layer, network and process space
  3. C.Image — a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal
  4. D.Image — a read-only template of layers bundling an app and its dependencies, built from a Dockerfile

Answer + AI explanation with Pro

4. What is Container?

Junior
  1. A.a minimal base image with no shell or package manager, shrinking attack surface for production
  2. B.reuse of unchanged image layers across builds so only changed instructions rebuild
  3. C.a runnable instance of an image with its own writable layer, network and process space
  4. D.a service such as Docker Hub or ECR that stores and distributes container images

Answer + AI explanation with Pro

5. Which term means: "a runnable instance of an image with its own writable layer, network and process space"?

Junior
  1. A.Container
  2. B.Layer caching
  3. C.Image
  4. D.Multi-stage build

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Container — reuse of unchanged image layers across builds so only changed instructions rebuild
  2. B.Container — a service such as Docker Hub or ECR that stores and distributes container images
  3. C.Container — a runnable instance of an image with its own writable layer, network and process space
  4. D.Container — a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image

Answer + AI explanation with Pro

7. What is Dockerfile?

Junior
  1. A.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  2. B.a minimal base image with no shell or package manager, shrinking attack surface for production
  3. C.the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  4. D.a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built

Answer + AI explanation with Pro

8. Which term means: "a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built"?

Junior
  1. A.Multi-stage build
  2. B.Image
  3. C.Distroless image
  4. D.Dockerfile

Answer + AI explanation with Pro

9. Which statement is correct?

Junior
  1. A.Dockerfile — a minimal base image with no shell or package manager, shrinking attack surface for production
  2. B.Dockerfile — a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built
  3. C.Dockerfile — a runnable instance of an image with its own writable layer, network and process space
  4. D.Dockerfile — a read-only template of layers bundling an app and its dependencies, built from a Dockerfile

Answer + AI explanation with Pro

10. What is Registry?

Junior
  1. A.a service such as Docker Hub or ECR that stores and distributes container images
  2. B.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  3. C.the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  4. D.a minimal base image with no shell or package manager, shrinking attack surface for production

Answer + AI explanation with Pro

11. Which term means: "a service such as Docker Hub or ECR that stores and distributes container images"?

Junior
  1. A.Multi-stage build
  2. B.Registry
  3. C.Container
  4. D.Distroless image

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. A.Registry — a runnable instance of an image with its own writable layer, network and process space
  2. B.Registry — a service such as Docker Hub or ECR that stores and distributes container images
  3. C.Registry — reuse of unchanged image layers across builds so only changed instructions rebuild
  4. D.Registry — a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built

Answer + AI explanation with Pro

13. What is Layer caching?

Mid
  1. A.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  2. B.a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built
  3. C.a minimal base image with no shell or package manager, shrinking attack surface for production
  4. D.reuse of unchanged image layers across builds so only changed instructions rebuild

Answer + AI explanation with Pro

14. Which term means: "reuse of unchanged image layers across builds so only changed instructions rebuild"?

Mid
  1. A.OCI image spec
  2. B.Layer caching
  3. C.Image
  4. D.Registry

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Layer caching — the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  2. B.Layer caching — a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal
  3. C.Layer caching — reuse of unchanged image layers across builds so only changed instructions rebuild
  4. D.Layer caching — a minimal base image with no shell or package manager, shrinking attack surface for production

Answer + AI explanation with Pro

16. What is Multi-stage build?

Mid
  1. A.a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built
  2. B.the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  3. C.a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal
  4. D.a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image

Answer + AI explanation with Pro

17. Which term means: "a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image"?

Mid
  1. A.Multi-stage build
  2. B.OCI image spec
  3. C.Container
  4. D.Registry

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.Multi-stage build — a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built
  2. B.Multi-stage build — a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal
  3. C.Multi-stage build — a runnable instance of an image with its own writable layer, network and process space
  4. D.Multi-stage build — a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image

Answer + AI explanation with Pro

19. What is Bind mount vs volume?

Mid
  1. A.reuse of unchanged image layers across builds so only changed instructions rebuild
  2. B.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  3. C.a minimal base image with no shell or package manager, shrinking attack surface for production
  4. D.a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal

Answer + AI explanation with Pro

20. Which term means: "a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal"?

Mid
  1. A.Registry
  2. B.Dockerfile
  3. C.Bind mount vs volume
  4. D.Layer caching

Answer + AI explanation with Pro

21. Which statement is correct?

Mid
  1. A.Bind mount vs volume — a bind mount maps a host path into the container; a volume is Docker-managed storage that survives container removal
  2. B.Bind mount vs volume — a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built
  3. C.Bind mount vs volume — the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  4. D.Bind mount vs volume — a read-only template of layers bundling an app and its dependencies, built from a Dockerfile

Answer + AI explanation with Pro

22. What is Distroless image?

Senior
  1. A.a service such as Docker Hub or ECR that stores and distributes container images
  2. B.a runnable instance of an image with its own writable layer, network and process space
  3. C.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  4. D.a minimal base image with no shell or package manager, shrinking attack surface for production

Answer + AI explanation with Pro

23. Which term means: "a minimal base image with no shell or package manager, shrinking attack surface for production"?

Senior
  1. A.Layer caching
  2. B.Distroless image
  3. C.Image
  4. D.Container

Answer + AI explanation with Pro

24. Which statement is correct?

Senior
  1. A.Distroless image — reuse of unchanged image layers across builds so only changed instructions rebuild
  2. B.Distroless image — a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  3. C.Distroless image — a minimal base image with no shell or package manager, shrinking attack surface for production
  4. D.Distroless image — a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image

Answer + AI explanation with Pro

25. What is OCI image spec?

Mid
  1. A.a text file of instructions (FROM, RUN, COPY, CMD) that defines how an image is built
  2. B.a read-only template of layers bundling an app and its dependencies, built from a Dockerfile
  3. C.the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  4. D.a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image

Answer + AI explanation with Pro

26. Which term means: "the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O"?

Mid
  1. A.Distroless image
  2. B.Image
  3. C.OCI image spec
  4. D.Container

Answer + AI explanation with Pro

27. Which statement is correct?

Mid
  1. A.OCI image spec — a minimal base image with no shell or package manager, shrinking attack surface for production
  2. B.OCI image spec — a Dockerfile pattern using multiple FROM stages to keep build tools out of the final slim image
  3. C.OCI image spec — the Open Container Initiative standard format that lets images run across Docker, containerd and CRI-O
  4. D.OCI image spec — reuse of unchanged image layers across builds so only changed instructions rebuild

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Containers · Docker question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers