gpt4 book ai didi

windows - 在 list 列表条目中获取 : no matching manifest for windows/amd64 10. 0.18362

转载 作者:行者123 更新时间:2023-12-03 01:03:02 26 4
gpt4 key购买 nike

我刚刚开始使用 docker。我安装了 Windows 版本的 docker,并按照 https://hub.docker.com/?overlay=onboarding 中给出的一些基本步骤进行操作。 。无法构建 docker 文件。

我刚刚从中克隆了一个 git 存储库经过 : git clone https://github.com/docker/doodle.git

然后尝试构建docker cd doodle\cheers2019 ;
docker build -t myrepo/cheers2019 .

我在命令行上收到响应: Sending build context to Docker daemon 13.31kB
Step 1/9 : FROM golang:1.11-alpine AS builder
1.11-alpine: Pulling from library/golang
no matching manifest for windows/amd64 10.0.18362 in the manifest list entries

DokerFile 有

FROM golang:1.11-alpine AS builder
RUN apk add --no-cache git
RUN go get github.com/pdevine/go-asciisprite
WORKDIR /project
COPY cheers.go .
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o cheers cheers.go

FROM scratch
COPY --from=builder /project/cheers /cheers
ENTRYPOINT ["/cheers"]

我的电脑规范:Windows 10 - AMD Ryzen5 处理器

AMD 处理器有问题吗?请建议我一些方法来解决这个问题。

最佳答案

接下来是 docker/doodle issue 9 ,它 includes a workaround .

还有更简单的建议:

An alternative is to go to Docker Desktop and select Switch to Linux Containers.

The problem is due to the -alpine part of the tag which unfortunately there is no alpine Linux container which will run on Windows.

关于windows - 在 list 列表条目中获取 : no matching manifest for windows/amd64 10. 0.18362,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58705028/

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