【问题标题】:Docker no matching manifest trying to pull python 3.10.1Docker没有匹配的清单试图拉出python 3.10.1
【发布时间】:2022-01-19 16:51:31
【问题描述】:

这是昨天早上的工作,然后发生了一些变化,我无法再拉 python:3.10.1 图像:

$ docker pull docker.io/library/python:3.10.1             
3.10.1: Pulling from library/python
no matching manifest for linux/amd64 in the manifest list entries

奇怪的是我仍然可以成功拉出最新的python:3.10。有人知道这里发生了什么吗?我确认我的几个同事也看到了这种行为。

编辑:顺便说一句,运行我的 Dockerfile 时也会出现类似的问题:

FROM python:3.10.1

...

->

docker build -t tagg .
[+] Building 2.4s (3/3) FINISHED                                                                                                                      
 => [internal] load build definition from Dockerfile                                                                                             0.3s
 => => transferring dockerfile: 37B                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                0.5s
 => => transferring context: 2B                                                                                                                  0.0s
 => ERROR [internal] load metadata for docker.io/library/python:3.10.1                                                                           1.6s
------
 > [internal] load metadata for docker.io/library/python:3.10.1:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:2ec4011ae5f1297c728e1adeb85a9c0640a6b83f6d6b5fc029f254baa631292b: not found
make: *** [branch-build] Error 1

【问题讨论】:

  • 似乎问题出在您的环境中。该标签确实存在,因此它应该正确拉取图像。你看过这个解决方案吗? stackoverflow.com/questions/48066994/…
  • 嗨@JeffGruenbaum,是的,我确实尝试了该解决方案,即使启用了实验模式,我也遇到了同样的问题。供参考,我在 Mac 上使用 Docker Desktop。
  • 嗯,Dockerfile中的文件名有大写D吗?你看过这个解决方案吗? stackoverflow.com/questions/64221861/…
  • 我没有看到那个解决方案,但是我的 Dockerfile 命名是正确的,并且构建变量似乎没有修复它。在我看来,我的环境会导致 docker pull docker.io/library/python:3.10.1 无法正常工作,但 docker pull docker.io/library/python:3.10 工作正常吗?
  • 是不是因为有3.10.2所以现在只能用了?

标签: python docker


【解决方案1】:

这似乎已经解决了...

$ docker pull docker.io/library/python:3.10.1
3.10.1: Pulling from library/python
Digest: sha256:b39f8b98308263406dc266ce9244f2e00f0d367003b401543d39854a10bd2786
Status: Downloaded newer image for python:3.10.1
docker.io/library/python:3.10.1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-12
    • 1970-01-01
    • 1970-01-01
    • 2020-01-14
    • 2020-05-11
    • 2021-04-03
    • 2021-06-03
    • 2023-02-18
    相关资源
    最近更新 更多