有关Docker Hub的一些问题

发布于 2025-01-27 11:46:05 字数 657 浏览 3 评论 0 原文

我对使用Docker的新手是新手,我去Docker Hub选择了基本图像,但我有一些问题。特别是,我想使用一个非阿尔卑斯山AmazonCorretto:最新的,并且想知道:

  • 如果我在Dockerfile中使用“ AmazonCorretto:最新”,例如:

    来自AmazonCorretto:最新

方法可以找出在运行时实际使用哪些特定版本的方法?例如,我可以在运行容器上使用“ exec”,并确切找出正在使用哪个图像/版本?我在问,因为我在哪里工作,我们必须先预先批准特定版本。

  • 我注意到在Docker Hub中(例如: https://hub.docker。 com/_/amazoncorretto?tab = tags )对于每个标签,例如,“ amazoncorretto:最新”,它显示2个图像,一个没有“ v8”,另一个带有“ v8”。这是什么意思?

  • 另外,标签中有些标签具有“ AL2”。这是什么意思?

谢谢,很抱歉提供了所有新手的问题,并提前感谢!

吉姆

I am fairly new to using Docker and I went to Docker Hub to select a base image, but I have some questions. In particular, I want to use a non-alpine amazoncorretto:latest, and am wondering:

  • If I use "amazoncorretto:latest" in a Dockerfile, e.g.:

    FROM amazoncorretto:latest

is there a way to find out what specific version actually is used at runtime? For example can I use "exec" on the running container and find out exactly which image/version is being used? I am asking because where I work, we have to get the specific version pre-approved.

  • I noticed that in Docker hub (e.g.: https://hub.docker.com/_/amazoncorretto?tab=tags) for each tag, e.g., the "amazoncorretto:latest", it shows 2 images, one without a "v8" and the other with a "v8". What does that "v8" mean?

  • Also, some tags have "al2" in the tag. What does that "al2" mean?

Thanks, and sorry for all the really newbie questions, and thanks in advance!

Jim

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

马蹄踏│碎落叶 2025-02-03 11:46:05

这并不是真正的码头问题:您通常如何告诉您使用哪种版本的Correto?看起来好像 Java -version 提供此信息,因此您可以在容器中运行该命令:

$ docker run --rm docker.io/amazoncorretto:latest java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment Corretto-8.332.08.1 (build 1.8.0_332-b08)
OpenJDK 64-Bit Server VM Corretto-8.332.08.1 (build 25.332-b08, mixed mode)

可以从可用的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:

$ docker run --rm docker.io/amazoncorretto:latest java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment Corretto-8.332.08.1 (build 1.8.0_332-b08)
OpenJDK 64-Bit Server VM Corretto-8.332.08.1 (build 25.332-b08, mixed mode)

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 the linux/amd64 version of the image has digest 1395e022da6d. If we look at the list of available tags, we see the same digest for the tag 8u332.

It's fairly common -- but by no means universal! -- for the latest tag to be an alternative name for a version-specific tag.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文