我所说的不是从仓库中pull下来的基础镜像。举个例子:假如我的操作系统是Asianux linux系统,仓库里没有,我要自己做个base 镜像,那要怎么做,或者有什么文档链接什么的
迷茫2017-04-24 09:15:12
The commonly used images we use to build images all exist, but where does the lowest-level image come from? Which image is it based on? For example, busybox is such a small image. What is its base image? This is busybox’s Dockerfile:
FROM scratch
ADD busybox.tar.xz /
CMD ["sh"]
The protagonist appears "scratch
", which is a very special existence, because its existence is similar to null, an existence that marks non-existence. You can regard it as an empty image, and then package the made system into regulations Add the format and CMD to modify it according to your own situation. You'd better take a look at the official documents provided above. I hope to learn from the articles you wrote after mirroring them.