Recall & Review
beginner
What is a Docker image?
A Docker image is a read-only template that contains the instructions to create a container. It includes the application code, libraries, and dependencies needed to run the app.
Click to reveal answer
beginner
Why are Docker images called blueprints for containers?
Because images define everything needed to build a container, like a blueprint defines a building. Containers are created from these images, just like buildings are built from blueprints.
Click to reveal answer
beginner
What happens when you run a Docker image?
Running a Docker image creates a container, which is a live, running instance of the image. The container uses the image's instructions to start the app.
Click to reveal answer
intermediate
Can you change a Docker image after creating a container?
No, Docker images are read-only. To change the app, you update the image and then create a new container from the updated image.
Click to reveal answer
intermediate
How does a Docker image help with consistency?
Since the image contains all app dependencies and setup, containers created from the same image behave the same way everywhere, ensuring consistency across environments.
Click to reveal answer
What does a Docker image contain?
✗ Incorrect
A Docker image contains the application code, libraries, and dependencies needed to run the app.
Why are Docker images compared to blueprints?
✗ Incorrect
Docker images are like blueprints because they define everything needed to build containers.
What is created when you run a Docker image?
✗ Incorrect
Running a Docker image creates a container, which is a running instance of the image.
Can you modify a Docker image after creating a container?
✗ Incorrect
Docker images are read-only; to change the app, update the image and create a new container.
How do Docker images ensure consistency?
✗ Incorrect
Docker images include all dependencies and setup, so containers behave the same everywhere.
Explain why Docker images are called blueprints for containers.
Think about how a blueprint guides building a house.
You got /4 concepts.
Describe what happens when you run a Docker image.
Focus on the relationship between image and container.
You got /4 concepts.