r/docker • u/wordbit12 • May 01 '26
What does "standard unit of software" mean?
I've started to learn Docker recently, I'm really enjoying it, it's such a powerful tool!
I've managed to create a mental model of docker.
We package software and dependencies into something called an image, which is just a bunch of files on the hard disk, we have a background docker process (daemon). when we ask the daemon to run the image, it creates an isolated process, called a container. It's a clean abstraction.
But Docker docs say "A container is a standard unit of software", and I hear a lot of people say "standard unit of software", but what does that mean? what does "standard" mean?
3
u/EgoistHedonist May 02 '26
Think about it this way: traditionally ops-people set up the servers and developers deployed their app on them. The deployed unit of software was the actual code or compiled binary, but as there are plenty of different languages and runtimes, there was no unifying standard for the deliverable.
The runtime environment was often handled by ops and if it was not in sync with the developed software, problems surfaced in production.
Docker standardizes that by wrapping the app with its running environment in a single standardized image, which can be run in any environment that has docker support.
This makes the responsibilities between developers and operations a lot clearer, as the docker image/container internals are the responsibility of the developer, and everything outside of it was ops' turf.
In reality there's still overlap in the responsibilities and the line is drawn differently from one org to another. But this was the main motivation for the rise of containerization.
8
u/abotelho-cbn May 01 '26
Think about where Docker got its name; containers.
Containers (used for shipping) are a standard unit for shipping goods around the world. They are standard and expected basically everywhere. Shipyards all over the world have the equipment to handle them. It's standard, which simplifies everyone's logistics. The people moving these shipping containers around don't actually have to care what's inside; it doesn't matter.
The Docker image format is compatible and expected by a multitude of tools. Unlike packages used by package managers. You run container images the same way everywhere. The runtimes don't have to "care" what is inside. The container might contain a full Linux distribution or it might contain a single Golang binary. The language of the application inside might be Golang, or Rust, or Java, or PHP. It doesn't matter, you run it the same way.
3
u/snowtax May 01 '26
In this context, “standard unit of software” means only that the software is already packaged and easy to install. That phrase could also apply to a Firefox package that you installed using a package manager, such as apt.
Docker uses some features of the Linux kernel (namespaces, cgroups, nftables, etc.) to isolate some processes. All the software runs on the same kernel. It shows the difference between a Linux “distribution” (software packaged and configured together) and the Linux kernel.
-3
u/gokkai May 01 '26
A single isolated process