Skip to content

How docker build turns a Dockerfile into layers

Select an icon to see what it is.

Step 2 of 6

FROM supplies the base layers

BuildKit resolves alpine and pulls it from registry-1.docker.io if it is not stored yet. Its layers become the bottom of the new image. FROM adds no layer of its own.

BuildKit log (step numbers are illustrative)

#1 [internal] load metadata for docker.io/library/alpine:latest
#3 [1/3] FROM docker.io/library/alpine:latest