当前位置: 首页 > 知识库问答 >
问题:

python - 为什么刚刚拉取的 docker 镜像的 digest 镜像和 docker hub 上的不一致?

万俟渝
2023-10-26

https://hub.docker.com/_/python/tags?page=1&name=3.10-bullseye

图片.png

上面是 docker hub 中,python:3.10-bullseye 的 digest 信息

下面是刚刚执行 docker pull python:3.10-bullseye 输出的 digest 信息

╰─➤  docker pull python:3.10-bullseye           3.10-bullseye: Pulling from library/pythonddf874abf16c: Pull complete 5c1459d3ab8b: Pull complete 29ab00e7798a: Pull complete 7883a473306c: Pull complete c3ab175b762c: Pull complete 9f11cb399571: Pull complete cfb416449119: Pull complete 1365a3c2b71e: Pull complete Digest: sha256:e917e3e93525f97fc343135efc2b3295a11b02450ff8d4eeaff25323c73caf6bStatus: Downloaded newer image for python:3.10-bullseyedocker.io/library/python:3.10-bullseye

可以看到,本地拉取的 Digest 是 e917e3e93525f97fc343135efc2b3295a11b02450ff8d4eeaff25323c73caf6b

共有1个答案

龙才俊
2023-10-26

是不是用了源?

可以在拉取镜像时候指定digest,如果找不到镜像。就用中转服务器自己push一个最新版的到国内仓库,然后再去拉取。

 类似资料:
  • 本文向大家介绍Docker拉取镜像的完整步骤,包括了Docker拉取镜像的完整步骤的使用技巧和注意事项,需要的朋友参考一下 1. docker pull 拉取镜像 使用 $ docker pull {IMAGE_NAME} 拉取镜像时,有两种情况: IMAGE_NAME 第一个斜杠之前有域名标识 Docker 会将 IMAGE_NAME 识别为带域名的镜像。例如,myregistry.io/spa

  • 拉取官方 Docker 镜像 docker pull apache/shardingsphere-proxy 手动构建 Docker 镜像(可选) git clone https://github.com/apache/shardingsphere mvn clean install cd shardingsphere-distribution/shardingsphere-proxy-dist

  • Pushing the image Now that a root key is available, it’s time to initialize the repository on the first push. Consider this as your app: FROM alpine RUN true Make sure you have all trusted metadata us

  • 如何从coreos iso映像生成docker base映像?我尝试将iso映像转换为tar文件,但失败了。docker导入。。。只是为了。tar存档文件?谢谢

  • 本文向大家介绍详解docker国内镜像拉取和镜像加速registry-mirrors配置修改,包括了详解docker国内镜像拉取和镜像加速registry-mirrors配置修改的使用技巧和注意事项,需要的朋友参考一下 由于国内访问直接访问Docker hub网速比较慢,拉取镜像的时间就会比较长。一般我们会使用镜像加速或者直接从国内的一些平台镜像仓库上拉取。 我比较常用的是网易的镜像中心和daoc

  • 以下步骤指导您构建自己的Envoy二进制文件,并将其放入干净的Ubuntu容器中。 第1步:构建Envoy 使用envoyproxy/envoy-build编译Envoy。该镜像具有构建Envoy所需的全部软件。在您的Envoy目录中执行如下命令: $ pwd src/envoy $ ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.release' 执