Containers
Where the shipping container picture breaks
The whole port in one picture, from the packing list to the gate. The picture stops being true in two places. Every container shares the host's kernel, and every container needs hardening of its own.
A compose.yaml for a real server
The compose file from part 6 works on a laptop. On a server it shows its password, lets logs fill the disk and stays stopped after a crash. A few lines fix that. An override file keeps the laptop setup easy to work with.
What a good Dockerfile looks like
A first Dockerfile works, and ships a 1.38 GB image that runs as root and takes ten seconds to stop. A build stage, a non-root user and the exec form fix all three.
Why Compose is more than a shortcut
A real app is several boxes that need each other. Compose describes them in one file, with their trailers, their gates and their start order. That plan stays where you can read it next month.
What volumes and ports are for
A container's own files are deleted with the container, and nothing outside can reach the container until you open a gate. A volume keeps the data. A published port opens the gate, and its address decides who can come in.
What actually happens when you type docker run
docker run only sends a message. We look at who receives it, who asks the kernel for the blindfold and the limit, and why anyone who can send that message is root.
Why latest is not a version
A sealed box waits in a depot until a server asks for it by name. A tag can point at a different image tomorrow, and a digest always names exactly one image.
What's inside a Docker image
An image is a sealed box made of stacked layers. The order of lines in your Dockerfile decides how long a rebuild takes, and a deleted secret is still inside the image.
A container is just a process
A container is an ordinary process on your machine with a blindfold and a ration. What that means, and why a container starts in a few hundred milliseconds while a full Linux VM on a laptop takes tens of seconds to boot.
New posts by email
One email when a post ships, about twice a month. Nothing else, and one click to leave.
Latest: Finding where a request breaks · RSS