如何在Docker Hub上查看Docker图像层? [英] How to view Docker image layers on Docker Hub?

查看:77
本文介绍了如何在Docker Hub上查看Docker图像层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以使用此命令 $ docker images --tree docker history 来查看Docker映像的层,但是我该如何对映像执行此操作在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.

例如,对于Tomcat存储库,>://://istry.hub.docker.com/_/tomcat/,该网页似乎没有显示图像上的内容.我必须查看Github上的Dockerfile才能找到答案.

E.g., 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.

更新我看到此仓库 https://registry.hub.docker.com/u/tutum/tomcat/具有更多标签."Dockerfile"标签显示了它的创建方式,但似乎只显示了最新版本.不能选择查看文件中的其他标签吗?

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目前非常有限,并且不提供您要求的功能.

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

将映像配置为从Docker Hub的源代码生成(自动生成)时,您会看到内容,但是当它预先上传时,您没有任何信息.

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.

这篇关于如何在Docker Hub上查看Docker图像层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆