以前的docker build过程会显示每一步的镜像id
Step 1/15 : FROM gitlab/gitlab-runner:alpine
---> 523e096632ca
Step 2/15 : RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
---> Running in e92214bfdd95
Removing intermediate container e92214bfdd95
---> f0747c9e3fcc
...
但是在新版本docker移除了, 如果需要再显示出来 需要build之前设置环境变量
export DOCKER_BUILDKIT=0
docker build -t test .