Docker Notes

chroot The following are the building blocks of a container chroot namespaces cgroups Containers are lightweight compared to virtual machines, they make use of existing resources on the server, just the process is isolated, rather than emulating whole operating system. chroot is used to isolate the directories required for the container. It separates the directories from the host root user. chroot /new-root bash, this command fails if you try right away, that’s because new-root doesn’t have access to the bash yet. ...

December 7, 2025

Daily Docker Tasks

Introduction This is not a in-depth guide for Docker but rather understanding enough to get comfortable with it. Docker is a containerization tool that creates an isolated environment for applications to not rely on system level dependencies so its behavior doesn’t change from system to system. It can be considered as defining a pure function rather than a function that relies on global variables or side effects. With the same inputs, it’ll produce the same output, here inputs being the system you define for your application to execute. ...

June 15, 2025