What are Docker image “layers”?

后端 未结 9 1597
情话喂你
情话喂你 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:51

    I think the official document gives a pretty detailed explanation: https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/.


    (source: docker.com)

    An image consists of many layers which usually are generated from Dockerfile, each line in Dockerfile will create a new layer, and the result is an image, which is denoted by the form repo:tag, like ubuntu:15.04.

    For more information, please consider reading the official docs above.

提交回复
热议问题