OA. free
Free
Accenture Core Computer Science Core Computer Science Medium

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.**

Choose one option.
Show answer & explanation
Answer: B. Docker containers are units of an OS, datafiles, and applications, including all dependencies between libraries used in the applications. A Docker image is an archive file that contains everything that can be used for Docker containers.

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.