A lightweight, educational container engine written in Bash. > Built to demystify Docker by using native Linux primitives.
"Baby Docker" is not a replacement for Docker. It is a learning tool designed to show you what happens under the hood when you run docker run.
It implements a container runtime using three core Linux technologies:
- Namespaces (
unshare): To isolate processes (PID), hostnames (UTS), and mount points. - Chroot: To restrict the file system view to a specific directory.
- Networking: Automatically injects DNS so your container can access the internet.
- A Linux Operating System (Ubuntu, Debian, Arch, Fedora).
wgetandtar(Pre-installed on most systems).- Root privileges (
sudo).
Clone the repository and run the installer script.
git clone [https://github.com/oggythebuilder/Baby_docker.git](https://github.com/oggythebuilder/Baby_docker.git)
cd Baby_docker
chmod +x install.sh
sudo ./install.sh