Card 05/ 05

RecapDifficulty: Beginner1 min

Recap: What a Container Is

One shared kernel, a read-only image, and a writable layer per container, with where each was.

What a container is comes down to the four ideas below, each listed with the card that covers it.

What the topic established, and which card it was on
The ideaWhere
A container is a process on the host's kernel, with its own view of files, processes and networkContainers and the Host Kernel
Nothing boots, so a container starts in milliseconds and a virtual machine in tens of secondsContainers vs Virtual Machines
An image is a read-only stack of layers; a container adds a writable layer and a processImages and Containers: What Each One Holds
Each container has its own writable layer, so containers from one image share nothing they writeImages and Containers Example: One Image, Three Containers

Most of what follows in Docker builds on the last two ideas: because a container is cheap to start and to remove, you treat it as disposable, and you keep anything that matters in the image or outside the container.