简体   繁体   中英

How to view Docker image layers on Docker Hub?

I know that I can use this command$ docker images --tree docker history to view the layers of a Docker image, but how do I do that for images on Docker Hub without pulling it? This is so that I know what is on an image before I download it.

Eg, for the Tomcat repo, https://registry.hub.docker.com/_/tomcat/ , the webpage doesn't seem to show what is on the image. I have to look at the Dockerfile on Github to find out.

Update I see this repo https://registry.hub.docker.com/u/tutum/tomcat/ has more tabs. The "Dockerfile" tab shows how it is created, but only seems to show the latest version. Is there no choice to view the file for other tags?

Docker Hub is quite limited at the moment and does not offer the feature you asked for.

When an image is configured to build from source at Docker Hub (an Automated Build ) you can see what went into it, but when it is uploaded pre-built you have no information.

Use microbadger , which comes with a few badges as well, eg:

So your tomcat image on https://microbadger.com/images/tomcat would look like:

MicroBadger 上的 Tomcat 映像

现在可以通过单击图像标签来实现。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM