What are the core components of Docker (images, containers, Dockerfile)?

Prepare for the TJR Bootcamp Test with quizzes and flashcards. Each question includes hints and explanations to boost your readiness for the exam!

Multiple Choice

What are the core components of Docker (images, containers, Dockerfile)?

The essential idea is to separate the roles of the three pieces. An image is a reusable, read-only template that contains the filesystem and the instructions needed to reproduce an environment. A container is a running instance of that image, with its own isolated runtime environment. The Dockerfile is a build recipe that specifies the steps to assemble an image—base image, files to add, commands to run, and configuration details—so you can create a new image from those instructions.

So the best way to map them is: images as templates, containers as running instances, and the Dockerfile as the build instructions to create an image. This explains why containers are what you run, derived from the templates, while the Dockerfile is not about runtime but about how to construct the image itself.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy