News for hackers. Stuff that matters.
Re:A Decade of Docker Containers by talkvoix on Saturday March 07, 2026 @12:23PM (#47289545)
A full decade since we took the 'it works on my machine' excuse and turned it into the industry standard architecture ('then we'll just ship your machine to production').
Re:A Decade of Docker Containers by avsm on Saturday March 07, 2026 @12:47PM (#47289778)
(coauthor of the article here)

Well, before Docker I used to work on Xen and that possible future of massive block devices assembled using Vagrant and Packer has thankfully been avoided...

One thing that's hard to capture in the article -- but that permeated the early Dockercons -- is the (positive) disruption Docker had in how IT shops were run. Before that going to production was a giant effort, and 'shipping your filesystem' quickly was such a change in how people approached their work. We had so many people come up to us grateful that they could suddenly build services more quickly and get them into the hands of users without having to seek permission slips signed in triplicate.

We're seeing the another seismic cultural shift now with coding agents, but I think Docker had a similar impact back then, and it was a really fun community spirit. Less so today with the giant hyperscalars all dominating, sadly, but I'll keep my fond memories :-)

Re:A Decade of Docker Containers by throwawaypath on Saturday March 07, 2026 @01:46PM (#47290341)
>massive block devices assembled using Vagrant and Packer has thankfully been avoided...

Funny comment considering lightweight/micro-VMs built with tools like Packer are what some in the industry are moving towards.

Re:A Decade of Docker Containers by avsm on Saturday March 07, 2026 @02:27PM (#47290663)
And those lightweight VM base images are possible because Docker applied a downward pressure on OS base image sizes! Alpine Linux doesn't get enough credit for this; in addition to being a great base image, it was also the first distro to prioritise fast and small image creation (Gentoo and Arch were small, but not fast to create).
Re:A Decade of Docker Containers by kgwgk on Saturday March 07, 2026 @03:37PM (#47291234)
Maybe in that alternative future of massive block devices some downward pressure on image sizes would have been applied just the same.
Re:A Decade of Docker Containers by avsm on Saturday March 07, 2026 @03:43PM (#47291288)
It's not as easy; a block device has to be bootable and so usually bundles a kernel (large). And because the filesystem inside is opaque, you can't do layering like Docker does easily via overlayfs and friends. libguestfs does a heroic job of making VM images easier to manipulate from code, but it's an uphill battle...
Re:A Decade of Docker Containers by imtringued on Sunday March 08, 2026 @10:34AM (#47297676)
There's also the part where you have a much easier time building alpine packages inside a container rather than a VM. There is no docker run equivalent that lets you quickly run a shell script inside the deployment Linux distribution to build the package.
Re:A Decade of Docker Containers by talkvoix on Saturday March 07, 2026 @12:51PM (#47289817)
Great point about coding agents! Back then, Docker gave us 'it works on my machine, let's ship the machine'. Now, AI agents are giving us 'I have no idea how this works, let's ship the prompt'. The early Docker community spirit really was legendary though—before every hyperscaler wrapped it in 7 layers of proprietary managed services. Thanks for the memories and the write-up!
Re:A Decade of Docker Containers by avsm on Saturday March 07, 2026 @01:15PM (#47290034)
Thanks for the kind words! I've been prodding @justincormack to resurrect the single most fun OS unconference I've ever attended -- New Directions in Operating Systems (last held back in 2014). https://operatingsystems.io

Some of those talks strangely make more sense today (e.g. Rump Kernels or unikernels + coding agents seems like a really good combination, as the agent could search all the way through the kernel layers as well).

Re:A Decade of Docker Containers by supriyo-biswas on Sunday March 08, 2026 @12:08AM (#47294603)
It seems that your entire profile is LLM generated comments, would appreciate it if you'd stop. Thanks.
Re:A Decade of Docker Containers by talkvoix on Sunday March 08, 2026 @11:57AM (#47298342)
I think you're too concerned with how others speak to believe that someone can actually write good, well-written comments. Obviously, in the age of LLMs, we might use one or two things to produce a better response. But that doesn't mean I don't think about what I wrote. Especially since English isn't my native language. Anyway, don't worry about me!
Re:A Decade of Docker Containers by ewams on Sunday March 08, 2026 @12:47PM (#47298756)
Professor Madhavapeddy, am I understanding your comment correctly? "without having to seek permission slips signed in triplicate", the motivation to create Docker was because of IT bureaucracy?
Re:A Decade of Docker Containers by syncsynchalt on Saturday March 07, 2026 @02:56PM (#47290931)
I see this take a lot but I'd argue what Docker did was to entice everyone to capture their build into a repeatable process (via a Dockerfile).

"Ship your machine to production" isn't so bad when you have a ten-line script to recreate the machine at the push of a button.

Re:A Decade of Docker Containers by lioeters on Saturday March 07, 2026 @03:27PM (#47291156)
Exactly my feeling. Docker is "works on this machine" with an executable recipe to build the machine and the application. Newer better solutions like OCI-compliant tools will gradually replace Docker, but the paradigm shift has provided a lot of lasting value.
Re:A Decade of Docker Containers by Gigachad on Saturday March 07, 2026 @05:31PM (#47292100)
Yeah docker codifies what the process to convert a base linux distro in to a working platform for the app actually is. Every company I've worked at that didn't use docker just has this tribal knowledge or an outdated wiki page on the steps you need to take to get something to work. Vs a dockerfile that exactly documents the process.
Re:A Decade of Docker Containers by chuckadams on Saturday March 07, 2026 @12:44PM (#47289751)
It's the ultimate in static linking. Perhaps a question that should be asked is why that approach is so compelling?
Re:A Decade of Docker Containers by blackcatsec on Saturday March 07, 2026 @01:42PM (#47290307)
I question that as well, it's also why Go is extremely popular. Could it just be a pendulum swing back towards static linking?

Wonder when some enterprising OSS dev will rebrand dynamic linking in the future...

Re:A Decade of Docker Containers by jfjasdfuw on Saturday March 07, 2026 @02:32PM (#47290713)
CGO_ENABLED=0 is sigma tier.

I don't care about glibc or compatibility with /etc/nsswitch.conf.

look at the hack rust does because it uses libc:

> pub unsafe fn set_var<K: AsRef<OsStr>, V: AsRef<OsStr>>(key: K, value: V)

Re:A Decade of Docker Containers by jcgl on Saturday March 07, 2026 @05:08PM (#47291903)
> I don't care about glibc or compatibility with /etc/nsswitch.conf.

So what do you do when you need to resolve system users? I sure hope you don't parse /etc/passwd, since plenty of users (me included) use other user databases (e.g. sssd or systemd-userdbd).

Re:A Decade of Docker Containers by cyberax on Saturday March 07, 2026 @05:39PM (#47292167)
Most software doesn't need to resolve users. You also can always shell out to `id` if you need an occasional bit of metadata.
Re:A Decade of Docker Containers by jcgl on Sunday March 08, 2026 @06:20AM (#47296095)
That's a fair point, and shelling out to id is probably a good solution.

I guess what bothers me is the software authors who don't think this through, leaving applications non-functional in these situations.

At least with Go, if you do CGO_ENABLED=0, and you use the stdlib functions to resolve user information, you end up with parsed /etc/passwd instead of shelling out to id. The Go stdlib should maybe shell out to id instead, but it doesn't. And it's understandable that software developers use the stdlib functions without thinking all too much about it. But in the end, simply advocating for CGO_ENABLED=0 results in software that is broken around the edges.

Re:A Decade of Docker Containers by cyberax on Monday March 09, 2026 @10:44PM (#47318536)
On the other hand, the NSS modules are broken beyond fixing. So promoting ecosystems that don't use them might finally spur the development of alternatives.
Re:A Decade of Docker Containers by jcgl on Wednesday March 11, 2026 @06:38AM (#47333878)
Could be interesting. What do you see as the main problems with NSS? I've never needed to use it directly myself. It seems quite crusty of course, but presumably there's more that your referencing.

Moving from linking stuff in-process to IPC (such as systemd-userdbd is promoting) _seems_ to me like a natural thing to do, given the nastiness that can happen when you bring something complex into your own address space (via C semantics nonetheless). But I'm not very knowledgeable here and would be interested to hear your overall take.

Re:A Decade of Docker Containers by cyberax on Wednesday March 11, 2026 @01:47PM (#47338783)
NSS/PAM modules have to work inside arbitrary environments. And vice versa, environments have to be ready for arbitrary NSS modules.

For example, you technically can't sandbox any app with NSS/PAM modules, because a module might want to send an email (yes, I saw that in real life) or use a USB device.

NSS/PAM need to be replaced with IPC-based solutions. systemd is evolving a replacement for PAM.

And for NSS modules in particular, we even have a standard solution: NSCD. It's even supported by musl libc, but for some reason nobody even _knows_ that it exists. Porting the NSCD protocol to Go is like 20 minutes of work. I looked at doing that more than once, but got discouraged by the other 99% of complexity in getting something like this into the core Go code.

Re:A Decade of Docker Containers by redhanuman on Saturday March 07, 2026 @12:33PM (#47289631)
the real trick was making "ship your machine" sound like best practice and ten years later we r doing the same thing with ai "it works in my notebook" jst became "containerize the notebook and call it a pipeline" the abstraction always wins because fixing the actual problem is just too hard.
Re:A Decade of Docker Containers by zbentley on Saturday March 07, 2026 @12:57PM (#47289881)
> fixing the actual problem is just too hard.

I think it’s laziness, not difficulty. That’s not meant to be snide or glib: I think gaining expertise in how to package and deploy non-containerized applications isn’t difficult or unattainable for most engineers; rather, it’s tedious and specialized work to gain that expertise, and Docker allowed much of the field to skip doing it.

That’s not good or bad per se, but I do think it’s different from “pre-container deployment was hard”. Pre-container deployment was neglected and not widely recognized as a specialty that needed to be cultivated, so most shops sucked at it. That’s not the same as “hard”.

Re:A Decade of Docker Containers by skydhash on Saturday March 07, 2026 @01:46PM (#47290338)
It's not even laziness or expertise. A lot of people are against learning conventions. They want their way, meaning what works on their computer. That's why they like the current scope of package managers, docker, flatpack,... They can do what they want in the sandbox provided however nonsensical and then ship the whole thing. And it will break if you look at it the wrong way.
Re:A Decade of Docker Containers by Bratmon on Saturday March 07, 2026 @03:12PM (#47291054)
I mean, walking through a door is easier than tearing down a wall, walking through it, and rebuilding the wall. That doesn't mean the latter is a good idea.
Re:A Decade of Docker Containers by goodpoint on Saturday March 07, 2026 @12:39PM (#47289698)
...while completely forgetting about security
Re:A Decade of Docker Containers by curt15 on Saturday March 07, 2026 @01:32PM (#47290199)
>'then we'll just ship your machine production'

Minus the kernel of course. What is one to do for workloads requiring special kernel features or modules?

Re:A Decade of Docker Containers by avsm on Saturday March 07, 2026 @02:25PM (#47290640)
Those are global to the machine; generally not an issue and seccomp rules can filter out undesirable syscalls to other containers. But GPU kernel/userspace driver matching has been a huge headache; see https://cacm.acm.org/research/a-decade-of-docker-containers/... in the article for how the CDI is (sort of) helping standardise this.
Re:A Decade of Docker Containers by Skywalker13 on Saturday March 07, 2026 @03:06PM (#47291019)
Oh, thank you... I'm not alone... I'm so tired of seeing crappy containers with pseudo service management handled by Dockerfiles, used instead of proper and serious packaging like that of many venerable Linux distributions.
Re:A Decade of Docker Containers by forrestthewoods on Saturday March 07, 2026 @12:34PM (#47289643)
Linux user space is an abject disaster of a design. So so so bad. Docker should not need to exist. Running computer programs need not be so difficult.
Re:A Decade of Docker Containers by esafak on Saturday March 07, 2026 @12:35PM (#47289649)
Who does it right?
Re:A Decade of Docker Containers by jjmarr on Saturday March 07, 2026 @12:43PM (#47289738)
Nix and Guix.

Good luck convincing people to switch!

Re:A Decade of Docker Containers by zbentley on Saturday March 07, 2026 @01:01PM (#47289920)
But they’re roughly the same paradigm as docker, right? My understanding of the Nix approach is that it’s still reproducing most of a user land/filesystem in a captive/separate/sandbox environment. Like, docker is using namespaces for more stuff, Nix has a heavier emphasis on reproducibility/determinism, but … they’re both still throwing in the towel on deploying directly on the underlying OS’s userland (unless you go all the way to nixOS) and shipping what amounts to a filesystem in a box, no?
Re:A Decade of Docker Containers by jjmarr on Saturday March 07, 2026 @01:27PM (#47290155)
I daily drive NixOS. I don't have a global "userland". Packages are shipped from upstream and pull in the dependencies they need to function.

That means unlike Gentoo, I've never dealt with a "slot conflict" where two packages want conflicting dependencies. And unlike Ubuntu, I have new versions of everything.

Pick 2: share dependencies, be on the bleeding edge, or waste your time resolving conflicts.

Re:A Decade of Docker Containers by ghthor on Sunday March 08, 2026 @12:36AM (#47294758)
Yeah nix is great for this. Also I can update infrequently and still package anything I want bleeding edge without any big issues other then maybe some build from sourcing.
Re:A Decade of Docker Containers by matrss on Saturday March 07, 2026 @07:01PM (#47292791)
> But they’re roughly the same paradigm as docker, right?

Absolutely not. Nix and Guix are package managers that (very simplified) model the build process of software as pure functions mapping dependencies and source code as inputs to a resulting build as their output. Docker is something entirely different.

> they’re both still throwing in the towel on deploying directly on the underlying OS’s userland

The existence of an underlying OS userland _is_ the disaster. You can't build a robust package management system on a shaky foundation, if nix or guix were to use anything from the host OS their packaging model would fundamentally break.

> unless you go all the way to nixOS

NixOS does not have a "traditional/standard/global" OS userland on which anything could be deployed (excluding /bin/sh for simplicity). A package installed with nix on NixOS is identical to the same package being installed on a non-NixOS system (modulo system architecture).

> shipping what amounts to a filesystem in a box

No. Docker ships a "filesystem in a box", i.e. an opaque blob, an image. Nix and Guix ship the package definitions from which they derive what they need to have populated in their respective stores, and either build those required packages or download pre-built ones from somewhere else, depending on configuration and availability.

With docker two independent images share nothing, except maybe some base layer, if they happen to use the same one. With nix or Guix, packages automatically share their dependencies iff it is the same dependency. The thing is: if one package depends on lib foo compiled with -O2 and the other one depends on lib foo compiled with -O3, then those are two different dependencies. This nuance is something that only the nix model started to capture at all.

Re:A Decade of Docker Containers by forrestthewoods on Saturday March 07, 2026 @08:15PM (#47293308)
> This nuance is something that only the nix model started to capture at all.

Unpopular opinion, loosely held: the whole attempt to share any dependencies at all is the source of evil.

If you imagine the absolute worst case scenario that every program shipped all of its dependencies and nothing was shared then the end result would be… a few gigabytes of duplicated data? Which could plausible be deduped at the filesystem level rather than build or deployment layer?

Feels like a big waste of time. Maybe it mattered in the 70s. But that was a long, long time ago.

Re:A Decade of Docker Containers by silverstream on Saturday March 07, 2026 @11:44PM (#47294470)
Node.js basically tried this — every package gets its own copy of every dependency in node_modules. Worked great until you had 400MB of duplicated lodash copies and the memes started.

pnpm fixed it exactly the way you describe though: content-addressable store with hardlinks. Every package version exists once on disk, projects just link to it. So the "dedup at filesystem level" approach does work, it just took the ecosystem a decade of pain to get there.

Re:A Decade of Docker Containers by jjmarr on Sunday March 08, 2026 @01:59AM (#47295224)
nix has a cache too but only if the packages are reproducible.

Much harder to get reproducibility with C++ than JavaScript to say the least.

Re:A Decade of Docker Containers by Sophira on Sunday March 08, 2026 @06:24AM (#47296127)
> If you imagine the absolute worst case scenario that every program shipped all of its dependencies and nothing was shared then the end result would be… a few gigabytes of duplicated data?

Honestly, I've seen projects that do this. In fact, a lot of projects that do this, at the compilation level.

It feels like a lot of the projects that I would want to use from git pull in their own dependencies via submodules when I compile them, even when I already have the development libraries needed to compile it. It's honestly kind of frustrating.

I mean, I get it - it makes it easier to compile for people who don't actually do things like that regularly. And yeah, I can see why that's a good thing. But at the very least, please give me an option to opt out and to use my own installed libraries.

Re:A Decade of Docker Containers by ufocia on Sunday March 08, 2026 @11:18AM (#47298020)
Maybe the RAM crunch will get people optimizing for dedup again.
Re:A Decade of Docker Containers by matrss on Sunday March 08, 2026 @06:30AM (#47296164)
I think the storage optimization aspect is secondary, it is more about keeping control over your distribution. You need processes to replace all occurrences of xz with an uncompromised version when necessary. When all packages in the distribution link against one and the same that's easy.

Nix and guix sort of move this into the source layer. Within their respective distributions you would update the package definition of xz and all packages depending on it would be rebuild to use the new version.

Using shared dependencies is a mostly irrelevant detail that falls out of this in the end. Nix can dedupe at the filesystem layer too, e.g. to reduce duplication between different versions of the same packages.

You can of course ship all dependencies for all packages separately, but you have to have a solution for security updates.

Re:A Decade of Docker Containers by zbentley on Sunday March 08, 2026 @05:10PM (#47301512)
> Docker ships a "filesystem in a box", i.e. an opaque blob, an image. Nix and Guix ship the package definitions from which they derive what they need to have populated in their respective stores, and either build those required packages or download pre-built ones from somewhere else, depending on configuration and availability.

The rest of your endorsement of NixOS is well taken, but this is a silly distinction to draw. Dockerfiles and nix package definitions are extremely similar. The fact that docker images are distributed with a heavier emphasis on opaque binary build step caching, and nix expressions have a heavier emphasis on code-level determinism/purity is accidental. The output of both is some form of a copy of a Linux user space “in a box” (via squashfs and namespaces for Docker, and via path hacks and symlinks for Nix). Zoom out even a little and they look extremely alike.

Re:A Decade of Docker Containers by abacate on Saturday March 07, 2026 @12:50PM (#47289810)
Trying to convince people usually makes any resistance worse.

Using it, solving problems with it, and building a real community around it tend to make a much greater impact in the long run.

Re:A Decade of Docker Containers by NortySpock on Saturday March 07, 2026 @01:03PM (#47289939)
Yeah, but if the problem you are solving is rare for most practitioners, effectively theoretical until it actually happens, then people won't switch until they get bit by that particular problem.
Re:A Decade of Docker Containers by jfjasdfuw on Saturday March 07, 2026 @02:34PM (#47290725)
Plan9 or Inferno.
Re:A Decade of Docker Containers by ufocia on Sunday March 08, 2026 @11:19AM (#47298033)
Wow! That's digging deep in history. Has Plan9 been updated for modern hardware?
Re:A Decade of Docker Containers by forrestthewoods on Saturday March 07, 2026 @12:55PM (#47289848)
Windows is an order of magnitude better in this regard.
Re:A Decade of Docker Containers by vanviegen on Saturday March 07, 2026 @01:04PM (#47289953)
It used to be, but only in cases where your distro doesn't just package whatever software you require. Nowadays I prefer Flatpak or AppImage over crappy custom Windows installers for those cases. They allow for sandboxing and reliable updating/deinstallation.
Re:A Decade of Docker Containers by skydhash on Saturday March 07, 2026 @01:55PM (#47290406)
These days, I equate anything that ships via docker/flatpak first as built by someone that only care about their own computer, especially if the project is opensource. As soon as a library or a tool update, they usually rush to add a hard condition on it for no reason other than to be on the "bleeding edge".
Re:A Decade of Docker Containers by Sophira on Sunday March 08, 2026 @06:30AM (#47296167)
I'm with you on this, but I do want to point out that a big reason that people will update bundled libraries like that is because they don't want to put the effort in to see whether their bundled library versions actually have any critical vulnerabilities that affect the project. It's easier to update everything and be sure that there are no critical vulnerabilities.

In other words, the Microsoft Windows update process as applied to software development.

Re:A Decade of Docker Containers by robmusial on Saturday March 07, 2026 @01:05PM (#47289963)
And yet I'm constantly getting asked when we'll support Windows containers at my office.
Re:A Decade of Docker Containers by avsm on Saturday March 07, 2026 @01:11PM (#47290008)
We've given up on native Windows containers in OCaml after trying to use them for our CI builds for many years. See https://www.tunbury.org/2026/02/19/obuilder-hcs/ for our recent switch to HCS instead. Compared to Linux containers, they're very much a second-class citizen in the Microsoft worldview of Docker.
Re:A Decade of Docker Containers by forrestthewoods on Saturday March 07, 2026 @02:22PM (#47290622)
This is because your team doesn’t know how to ship software without using containers.

If you have adopted a bad tool then people are likely to want the bad tool in more places. This is the opposite of a virtuous cycle and is a horrible form of tech debt.

Re:A Decade of Docker Containers by whateverboat on Saturday March 07, 2026 @12:36PM (#47289666)
Windows.
Re:A Decade of Docker Containers by hwhshs on Saturday March 07, 2026 @05:27PM (#47292073)
In 2002 I used to think why cant they package a website. These .doc installation instructions are insane! What a waste of someones time.

I sort of had the problem in mind. Docker is the answer. Not clever enough to have inventer it.

If I did I would probably have invented octopus deploy as I was a Microsoft/.NET guy.

Re:A Decade of Docker Containers by siva7 on Sunday March 08, 2026 @12:29PM (#47298616)
I think it was all about efficient large-scale server machine reproducibility and not about making local development workflows easier. If it were i'm sure Docker would look much more friendly for that case but it still advanced to an industry-standard even for small software departments because everyone used it.