Q19 /20 What are Docker images and Docker containers?
Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.
/20
What are Docker images and Docker containers? Choose the correct option.
Show answer & explanation
A Docker image is a lightweight, standalone, executable package that contains all dependencies (OS, libraries, code, runtime). A Docker container is a runtime instance created from a Docker image—it is the running environment, not an archive. Option B correctly identifies images as the archive/template and containers as the executable runtime units.
Step-by-step Derivation:
Docker fundamentals: (1) Docker Image = immutable blueprint/template in archive format containing OS, libraries, code, and dependencies. (2) Docker Container = live instance spawned from an image; it runs the application in an isolated environment. Option A reverses the definitions (wrong). Option C incorrectly states containers are files (they are processes). Option D reverses both definitions (wrong). Option B aligns with Docker architecture: images are the packaged artifacts; containers are the running instances derived from those images.