Docker from Scratch
Sunday, July 5, 2026
Today, I'm wondering how did all those base Docker image created. And what happened on the most basic layer of a Docker image.
I found out that there's a reserved image called scratch. So, the most basic docker image can be derived from it by adding FROM scratch layer.
At the most basic form, it actually runs a Linux kernel, no matter what is the host environment is. Yes, even on Windows.
From scratch image, then we can add layers to reach the state of base image that we usually use.