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.
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:
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