Lesson 3 / 26

Image vs Container

An image is a blueprint; a container is a running instance of it.

Two different things

An image is a read-only template — your app's filesystem, dependencies, and startup command frozen in layers. A container is a running (or stopped) instance created from an image, with its own writable layer.

Class vs object

If you know OOP: an image is like a class, and a container is like an object created from it. You can spin up many containers from the same image.