docker base 镜像制作
PHP中文网
PHP中文网 2017-04-24 09:13:12
0
2
588

我所说的不是从仓库中pull下来的基础镜像。举个例子:假如我的操作系统是Asianux linux系统,仓库里没有,我要自己做个base 镜像,那要怎么做,或者有什么文档链接什么的

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
迷茫

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.

黄舟

I haven’t done it, but you can refer to this: Create a base image

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!