gpt4 book ai didi

Trouble Building Windows Server Core Containers with Python Image(使用Python映像构建Windows服务器核心容器时遇到问题)

转载 作者:bug小助手 更新时间:2023-10-27 20:21:32 24 4
gpt4 key购买 nike



I'm facing difficulties building Windows Server Core containers using Python images, specifically with tags like python:3.11.5-windowsservercore. While I can successfully build containers using other Python tags, I'm encountering an issue with these Windows Server Core-based images.

我在使用Python映像构建Windows Server Core容器时遇到了困难,特别是使用了像python:3.11.5-windowsservercore这样的标记。虽然我可以使用其他Python标记成功构建容器,但我在使用这些基于Windows Server Core的映像时遇到了一个问题。


Here's my Dockerfile contents:

以下是我的Docker文件内容:


ARG BASE_IMAGE=python:3.11.5-windowsservercore
FROM ${BASE_IMAGE}

However, when I attempt to build the container, I encounter the following error:

但是,当我尝试构建容器时,我遇到了以下错误:


=> ERROR [internal] load metadata for docker.io/library/python:3.11.5-windowsservercore
------
> [internal] load metadata for docker.io/library/python:3.11.5-windowsservercore:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:d80b99d74aea127674d43c3e42d572bd2c718d6355680eeafdc1368ecb821daf: not found

I've confirmed that the image I'm trying to use is available on Docker Hub, and you can find it at the following link: Python 3.11.5 on Windows Server Core.

我已经确认我试图使用的镜像可以在Docker Hub上找到,你可以在下面的链接中找到它:Windows Server Core上的Python3.11.5。


更多回答
优秀答案推荐
更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com