正在获取:清单列表条目中没有 windows/amd64 10.0.18362 的匹配清单

Getting : no matching manifest for windows/amd64 10.0.18362 in the manifest list entries

我刚刚开始使用 docker。 我安装了 docker 的 windows 版本,并遵循了 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, and it 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.