Q19.
Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What are Docker images and Docker containers? Choose the correct option.**
Show answer & explanation
Option B correctly defines the relationship between Docker images and containers. A Docker image is a lightweight, standalone, executable package (archive) that contains all the code, runtime, system tools, libraries, and settings needed to run an application. A Docker container is a running instance of a Docker image—it's the actual executing unit that combines the OS, datafiles, applications, and all dependencies. Options A and D reverse these definitions, while option C incorrectly describes containers as files rather than running processes.
Step-by-step Derivation:
Recall the Docker architecture: (1) Docker images are static blueprints/templates stored as archived packages. (2) Docker containers are dynamic runtime instances created from images. (3) The relationship is: image → (instantiate) → container. Option B aligns with this hierarchy by correctly identifying images as archive files and containers as the executable units derived from them.