News for hackers. Stuff that matters.
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by darkwater on Sunday November 24, 2024 @06:27AM (#42227342)
I wonder why Bocker makes the frontpage so often. Is Docker still that controversial even in 2024? Why people don't recognize that it actually brought something useful (mainly, software distribution and easy of "run everywhere") to the table?
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by UK-Al05 on Sunday November 24, 2024 @06:35AM (#42227381)
It's just a learning tool to see how docker works.

Docker is just a combination of kernel tech that already exists. Namespaces, cgroups, and union file systems and probably few others.

Re:Bocker: Docker implemented in around 100 lines of Bash (2... by ajross on Sunday November 24, 2024 @11:24AM (#42228688)
Exactly. "Docker" is boring, everyone uses it, everyone knows it, no one really wants to rewrite it (on Linux) except for parochial infighting or religious license reasons.

But Linux containers[1] are actually fascinating stuff, really powerful, and (even for the Docker experts) poorly understood. The point of Bocker isn't "see how easy it is to rewrite Docker" it's "See how simple and powerful the container ecosystem is!".

[1] Also btrfs snapshots, which are used very cleverly in Bocker.

Re:Bocker: Docker implemented in around 100 lines of Bash (2... by mst on Monday November 25, 2024 @10:22AM (#42237012)
I like doing similar tricks with zfs snapshots for containers on linux and jails on fBSD.

(this is not intended to start a filesystem argument, I'm doing it with zfs because I already know zfs and it's available on both of the OSen I care about; if you already know btrfs and are only running things that support it, clearly you should use that for the exact same reasons ;)

Re:Bocker: Docker implemented in around 100 lines of Bash (2... by oncallthrow on Sunday November 24, 2024 @07:26AM (#42227592)
It hits the frontpage often because people assume that Docker is this super complex thing, but (at its most fundamental), it's actually quite elegant and understandable, which is interesting - a perfect HN story, in fact.
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by juped on Sunday November 24, 2024 @11:22AM (#42228678)
It is kinda complex, but all the complexity is in Linux, ~none is in 'Docker'.
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by gosub100 on Sunday November 24, 2024 @08:06AM (#42227742)
I'm bringing overlayfs to people at my company to save time on a lenghty CI process, and they are in awe at the speedup. But after demo-ing it to a few people I realized they could just use / (I could have brought them) docker.
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by Asaf51 on Sunday November 24, 2024 @10:59AM (#42228549)
How overlayfs speeds up CI processes?
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by gosub100 on Monday November 25, 2024 @06:39PM (#42241238)
Huge (32gb) git repo full of junk and small files. No power to change it. Created a cron job that updates and rebuilds every 24hrs. Clients can clone it instantly with overlay instead of a 30m checkout and build each time. Not to mention disk space savings
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by delusional on Sunday November 24, 2024 @06:31AM (#42227363)
It's possible it's not climbing the front page to slight docker, but rather that people are seeing that docker is something useful and want to know how it works. Bocker can be an entrypoint into the technologies.
Re:Bocker: Docker implemented in around 100 lines of Bash (2... by outofpaper on Sunday November 24, 2024 @06:42AM (#42227414)
Yes it's a wonderful little read. Besides without volumes and port forwarding few would ever deploy this to production.

The reason people use docker over Podman and rolling their own is because of the ecosystem and ubiquity of docker.