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

What are Docker images and Docker containers?

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: Docker images are archive files (blueprints/templates) that contain the OS, libraries, code, and dependencies, while Docker containers are the running instances created from those images. Options A and D reverse this relationship incorrectly. Option C incorrectly describes containers as files, when they are actually runtime instances.

Step-by-step Derivation:
Docker fundamentals: A Docker image is a lightweight, standalone, executable package stored as an archive containing application code, runtime, system tools, and dependencies. A Docker container is an instantiated, running process created from a Docker image. The image is static (a template), and the container is dynamic (a running instance). Only Option B accurately captures this image-as-blueprint and container-as-instance distinction.