Hacker News

Cloudmash333
Built my own "mini Docker" using just Bash scripts using only Linux tools github.com

Cloudmash333op11 hours ago

Hey everyone,

I’ve been diving deep into how Docker actually works under the hood — namespaces, cgroups, chroot, virtual Ethernet pairs, etc. To really understand it, I wrote my own container runtime from scratch using only Bash and standard Linux utilities.

It can:

Create isolated filesystem environments (via chroot)

Set up PID, UTS, and network namespaces

Connect containers using virtual Ethernet pairs

Run simple Nodejs app inside this container Allot cgroups to this process This project helped me understand how containerization works without any abstraction layer — just pure Linux fundamentals.

Repo: github.com/Cloudmash333/container-from-scratch

hn-front (c) 2024 voximity
source