Why do you need a base image with Docker?

后端 未结 4 578
慢半拍i
慢半拍i 2021-01-04 05:48

I have went through every single page of the documentation of Docker.

I do not understand, yet still, why a \"base image\" (for example, the Ubuntu Base Image) is n

4条回答
  •  日久生厌
    2021-01-04 06:19

    From Docker docs,

    "A container is nothing but a running process, with some added encapsulation features applied to it in order to keep it isolated from the host and from other containers.

    One of the most important aspects of container isolation is that *each container interacts with its own private filesystem; this filesystem is provided by a Docker image (like image of any Linux OS - which is also the Base image)." The final image may include multiple layers which are just some other filesystem changes. Like for running a Java application, you put on a JDK layer on top of the Base Linux image.

    *Credits: Image taken from Educative.io

提交回复
热议问题