Docker
/Beginner
Docker Components
Definition
The primary building blocks of the Docker ecosystem: Images (the read-only templates), Containers (the running instances), Registries (where images are stored), and Dockerfiles (the instructions to build images).
Explain Like I'm New
Dockerfile is the Recipe. The Image is the frozen, unbaked Cake. The Container is the hot, running Cake in the oven. The Registry is the grocery store where you buy or share frozen cakes.
Real World Example
You write a `Dockerfile`. You build it into an `Image`. You push that Image to Docker Hub (the `Registry`). Your friend pulls the Image and runs it as a `Container` on their laptop.
Common Use Cases
- •Vocabulary building
- •Understanding workflows
Interview Questions
basic
- Which component is essentially a 'Read-Only Blueprint': The Image or the Container?
intermediate
- Can you have multiple Containers running from a single Image?