有关Docker Hub的一些问题
我对使用Docker的新手是新手,我去Docker Hub选择了基本图像,但我有一些问题。特别是,我想使用一个非阿尔卑斯山AmazonCorretto:最新的,并且想知道:
-
如果我在Dockerfile中使用“ AmazonCorretto:最新”,例如:
来自AmazonCorretto:最新
方法可以找出在运行时实际使用哪些特定版本的方法?例如,我可以在运行容器上使用“ exec”,并确切找出正在使用哪个图像/版本?我在问,因为我在哪里工作,我们必须先预先批准特定版本。
-
我注意到在Docker Hub中(例如: https://hub.docker。 com/_/amazoncorretto?tab = tags )对于每个标签,例如,“ amazoncorretto:最新”,它显示2个图像,一个没有“ v8”,另一个带有“ v8”。这是什么意思?
-
另外,标签中有些标签具有“ AL2”。这是什么意思?
谢谢,很抱歉提供了所有新手的问题,并提前感谢!
吉姆
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不是真正的码头问题:您通常如何告诉您使用哪种版本的Correto?看起来好像
Java -version
提供此信息,因此您可以在容器中运行该命令:可以从可用的Docker标签中弄清楚其中的一些。如果您查看
最新
标签的信息,它显示了linux/amd64
图像的版本具有摘要1395E0222DA6D
。如果我们查看可用标签的列表,我们会看到标签8U332
的同一摘要。这很普遍 - 但绝不是普遍! - 对于
最新的
标签是特定版本标签的替代名称。This isn't really a Docker question: how would you normally tell what version of Correto you're using? It looks as if
java -version
provides this information, so you can just run that command in a container:It is possible to figure out some of this from the available Docker tags. If you look at the information for the
latest
tag, it shows, it shows that thelinux/amd64
version of the image has digest1395e022da6d
. If we look at the list of available tags, we see the same digest for the tag8u332
.It's fairly common -- but by no means universal! -- for the
latest
tag to be an alternative name for a version-specific tag.