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

标签 windows git docker go amd

我刚刚开始使用 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/

相关文章:

git 显示一个不存在的奇怪文件名

git - 无法将 git flow 应用于 Sourcetree 中的其他用户

docker - `docker-credential-gcloud` 不在系统路径中

docker - 使用Kafka和Zookeeper运行微服务时docker-compose up错误

c++ - Windows 是否有集成的内置 C/C++ 编译器包?

windows - 如何为 Windows 安装 GitFlow

git - 如何让 GIT 忽略我的更改

java - $JAVA_HOME 与 git bash 上的 java -version 不匹配(最后更新)

django - 在安装了另一个 Python 版本的 Windows 中为 Python 3.4-Django 1.7 创建虚拟环境

python - mysql.connector.errors.DatabaseError : 2005 (HY000): Unknown MySQL server host 'db' (2)