获取:清单列表条目中没有适用于Windows / amd64 10.0.18362的匹配清单

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

我刚刚从中克隆了一个git repo 创建人: 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处理器是否有问题?请建议我一些解决方法。

zongjie720 回答:获取:清单列表条目中没有适用于Windows / amd64 10.0.18362的匹配清单

此后跟docker/doodle issue 9,然后是includes a workaround

还有更简单的建议:

  

另一种方法是转到Docker Desktop,然后选择 Switch to Linux Containers

     

问题出在标签的-alpine部分,不幸的是,没有可以在Windows上运行的高山Linux容器。

本文链接:https://www.f2er.com/3162079.html

大家都在问