šŸ“¦

Images vs Containers

The blueprint vs the running instance

Step 1 of 3

What is an Image?

An image is a read-only template with instructions for creating a container. Think of it like a class in OOP or a recipe. Images are built in layers — each Dockerfile command creates a new layer.

bash
docker pull nginx:latest
Application codetop layer
Dependencies
Config files
OS packages
Base OS layerbase layer