Containers · Docker interview questions

66 real Containers · Docker questions from the DevOps & SRE bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Image?

Junior
  1. A.ENTRYPOINT sets the fixed executable while CMD provides default arguments that can be overridden
  2. B.a service that stores and distributes Docker images such as Docker Hub
  3. C.Docker's modern build engine offering parallelism, build secrets, and cache mounts
  4. D.a read-only template containing the filesystem and metadata to run a container
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Image — a running, isolated instance of an image with its own process namespace
  2. B.Image — a cached, immutable filesystem change produced by each instruction in a Dockerfile
  3. C.Image — a read-only template containing the filesystem and metadata to run a container
  4. D.Image — a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
Reveal the answer + AI explanation — free account

4. What is Container?

Junior
  1. A.a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
  2. B.a running, isolated instance of an image with its own process namespace
  3. C.a text file with instructions describing how to build a Docker image
  4. D.a cached, immutable filesystem change produced by each instruction in a Dockerfile
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Container — a running, isolated instance of an image with its own process namespace
  2. B.Container — a cached, immutable filesystem change produced by each instruction in a Dockerfile
  3. C.Container — a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
  4. D.Container — a service that stores and distributes Docker images such as Docker Hub
Reveal the answer + AI explanation — free account

7. What is Dockerfile?

Junior
  1. A.a cached, immutable filesystem change produced by each instruction in a Dockerfile
  2. B.a text file with instructions describing how to build a Docker image
  3. C.a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
  4. D.ENTRYPOINT sets the fixed executable while CMD provides default arguments that can be overridden
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.Dockerfile — a running, isolated instance of an image with its own process namespace
  2. B.Dockerfile — a text file with instructions describing how to build a Docker image
  3. C.Dockerfile — a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
  4. D.Dockerfile — a read-only template containing the filesystem and metadata to run a container
Reveal the answer + AI explanation — free account

10. What is Layer?

Junior
  1. A.a running, isolated instance of an image with its own process namespace
  2. B.Docker's modern build engine offering parallelism, build secrets, and cache mounts
  3. C.a read-only template containing the filesystem and metadata to run a container
  4. D.a cached, immutable filesystem change produced by each instruction in a Dockerfile
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.Layer — reuse of unchanged layers from prior builds to speed up image creation
  2. B.Layer — a service that stores and distributes Docker images such as Docker Hub
  3. C.Layer — a cached, immutable filesystem change produced by each instruction in a Dockerfile
  4. D.Layer — a running, isolated instance of an image with its own process namespace
Reveal the answer + AI explanation — free account

13. What is Registry?

Junior
  1. A.a text file with instructions describing how to build a Docker image
  2. B.a service that stores and distributes Docker images such as Docker Hub
  3. C.a Docker-managed persistent storage mechanism that outlives a container
  4. D.a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Registry — a read-only template containing the filesystem and metadata to run a container
  2. B.Registry — Docker's modern build engine offering parallelism, build secrets, and cache mounts
  3. C.Registry — a service that stores and distributes Docker images such as Docker Hub
  4. D.Registry — a cached, immutable filesystem change produced by each instruction in a Dockerfile
Reveal the answer + AI explanation — free account

16. What is Volume?

Junior
  1. A.a service that stores and distributes Docker images such as Docker Hub
  2. B.mounting a host directory into a container so changes are shared with the host
  3. C.a cached, immutable filesystem change produced by each instruction in a Dockerfile
  4. D.a Docker-managed persistent storage mechanism that outlives a container
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.Volume — Docker's modern build engine offering parallelism, build secrets, and cache mounts
  2. B.Volume — a Docker-managed persistent storage mechanism that outlives a container
  3. C.Volume — a read-only template containing the filesystem and metadata to run a container
  4. D.Volume — mounting a host directory into a container so changes are shared with the host
Reveal the answer + AI explanation — free account

19. What is Multi-stage build?

Mid
  1. A.a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
  2. B.Docker's modern build engine offering parallelism, build secrets, and cache mounts
  3. C.reuse of unchanged layers from prior builds to speed up image creation
  4. D.a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Multi-stage build — a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
  2. B.Multi-stage build — a Docker-managed persistent storage mechanism that outlives a container
  3. C.Multi-stage build — a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
  4. D.Multi-stage build — a service that stores and distributes Docker images such as Docker Hub
Reveal the answer + AI explanation — free account

22. What is Bind mount?

Mid
  1. A.reuse of unchanged layers from prior builds to speed up image creation
  2. B.mounting a host directory into a container so changes are shared with the host
  3. C.a Docker-managed persistent storage mechanism that outlives a container
  4. D.a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Mid
  1. A.Bind mount — a running, isolated instance of an image with its own process namespace
  2. B.Bind mount — mounting a host directory into a container so changes are shared with the host
  3. C.Bind mount — reuse of unchanged layers from prior builds to speed up image creation
  4. D.Bind mount — a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
Reveal the answer + AI explanation — free account

25. What is ENTRYPOINT vs CMD?

Mid
  1. A.a minimal base image containing only the app and runtime, no shell or package manager, reducing attack surface
  2. B.ENTRYPOINT sets the fixed executable while CMD provides default arguments that can be overridden
  3. C.mounting a host directory into a container so changes are shared with the host
  4. D.Docker's modern build engine offering parallelism, build secrets, and cache mounts
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Mid
  1. A.ENTRYPOINT vs CMD — a cached, immutable filesystem change produced by each instruction in a Dockerfile
  2. B.ENTRYPOINT vs CMD — a read-only template containing the filesystem and metadata to run a container
  3. C.ENTRYPOINT vs CMD — ENTRYPOINT sets the fixed executable while CMD provides default arguments that can be overridden
  4. D.ENTRYPOINT vs CMD — a Dockerfile technique using multiple FROM stages to keep only build outputs in the final image
Reveal the answer + AI explanation — free account

28. What is Build cache?

Mid
  1. A.a running, isolated instance of an image with its own process namespace
  2. B.a service that stores and distributes Docker images such as Docker Hub
  3. C.a read-only template containing the filesystem and metadata to run a container
  4. D.reuse of unchanged layers from prior builds to speed up image creation
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Mid
  1. A.Build cache — Docker's modern build engine offering parallelism, build secrets, and cache mounts
  2. B.Build cache — a Docker-managed persistent storage mechanism that outlives a container
  3. C.Build cache — a service that stores and distributes Docker images such as Docker Hub
  4. D.Build cache — reuse of unchanged layers from prior builds to speed up image creation
Reveal the answer + AI explanation — free account

Showing 30 of 66 Containers · Docker questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Containers · Docker free