How can I see Dockerfile for each docker image?

后端 未结 3 814
离开以前
离开以前 2021-02-07 06:17

I have the following docker images.

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         late         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 06:45

    As the images are downloaded directly from the Dockerhub, only the image is pulled from the docker hub into your machine. If you want to see the dockerfile, then you can go to docker hub and type the image name and version name in the tag format (e.g ubuntu:14.04) this will open the image along with Docker file details. Also keep in mind, only if the owner of the image shared their Dockerfile, you can see it. Otherwise not. Most official images will not provide you with Dockerfile.

    Hope it helps!

提交回复
热议问题