What are Docker image “layers”?

后端 未结 9 1596
情话喂你
情话喂你 2020-11-30 17:02

I am brand new to Docker and am trying to understand exactly what a Docker image is. Every single definition of a Docker image uses the term \"layer\", but does not

9条回答
  •  我在风中等你
    2020-11-30 17:59

    My personal understanding is that we can compare docker layer to github commit. For your base image(your fresh master repo), you make several commits, every commit is changing your master status, it's the same in docker, every layer is doing some operation based on previous intermediate layer. And then, this layer become a new intermediate layer to the next layer.

提交回复
热议问题