Baby_docker banner

Baby_docker

1 devlog
2h 54m 18s

When people use Docker, they often think it's a "lightweight virtual machine." Baby Docker proves that a container is actually just a normal folder on your computer that has been "tricked" by the Linux Kernel into thinking it is an entire operatin…

When people use Docker, they often think it’s a “lightweight virtual machine.” Baby Docker proves that a container is actually just a normal folder on your computer that has been “tricked” by the Linux Kernel into thinking it is an entire operating system.

Demo Repository

Loading README...

oggythebuilder01

I’ve been using Docker for a while now. I type docker run, and a minute later, I have a database or a web server running. But honestly? It felt like magic. I hate magic in engineering. Magic means I don’t understand the underlying system.

I decided to stop treating containers like lightweight VMs and actually look under the hood. I learned that “containers” aren’t a real physical object in the Linux kernel—they are just a combination of normal Linux features like Namespaces, Cgroups, and Chroot working together to lie to a process.

My goal for this weekend was simple: Write a script that creates a container manually, without installing Docker, to prove that it’s just a process in a fancy costume.

Attachment
0