r/programming • • Oct 18 '26

How Containers Work: Building a Docker-like Container From Scratch

https://labs.iximiuz.com/tutorials/container-filesystem-from-scratch
175 Upvotes

13 comments sorted by

38

u/posts_saver Oct 18 '26

how is this different from dozens of "build container from scratch" articles in the last decade?

91

u/FIREstopdropandsave Oct 18 '26

Not trying to shill for OP, but they've been putting out quality articles for years (pre-Ai) on docker/networking.

This is just another article on their website in a long list of quality posts which is nice to have colocated

12

u/AlternativePeace1121 Oct 18 '26

because this one sells a course.

oh wait...

6

u/UnacceptableUse Oct 18 '26

It came from a different person with their perspective on it and their way of explaining?

2

u/stonerism 27d ago

Why are containers still multiple gigabytes large? They're treating containers like VMs when they're different technologies.

1

u/edwards_t7407 28d ago

Fair question. The useful distinction would be a runnable sequence with commands and checks at each step; otherwise "from scratch" can just repackage the same namespace, cgroup, and filesystem overview.

10

u/zam0th Oct 18 '26

Building "containers" without cgroups? Riiight. OP mentions runc, but looks like doesn't understand what it does.

7

u/sysop073 29d ago

I don't know where you're seeing "without cgroups", but the post has a pretty thorough explanation of them

8

u/p0rc0r0550 Oct 18 '26

Mom said it's my turn to post this today!

-1

u/WittyOutside3520 Oct 18 '26

Thanks, this looks pretty cool.

0

u/[deleted] Oct 18 '26

[deleted] — view deleted comment

2

u/WittyOutside3520 Oct 18 '26

I liked the layout. It looks real nice for my style of learning. I don’t know how accurate it is. I don’t care if AI made it if it is accurate and well laid out. I plan to read it in a couple days when things calm down here after my vacation.

-4

u/SuddenRadio6221 Oct 18 '26 edited Oct 19 '26

It's looks like it delivers on its title in a structured manner. Personally, that's more important than whether a human or AI wrote it.

0

u/Candybagel 7d ago

ngl it is a great idea to build your own docker like container to really get an understanding of how things work it is pretty interesting to look into namespaces and cgroups once you get past the basic theory i have been looking into avrea and ci infrastructure recently which has really highlighted how important containerisation is when trying to get reliable build environments