【问题标题】:Getting : no matching manifest for windows/amd64 10.0.18362 in the manifest list entries获取:清单列表条目中没有与 windows/amd64 10.0.18362 匹配的清单
【发布时间】:2020-03-01 10:54:11
【问题描述】:

我刚刚开始使用 docker。 我安装了 docker 的 windows 版本,并按照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 处理器有问题吗?请给我一些解决这个问题的方法。

【问题讨论】:

    标签: windows git docker go amd


    【解决方案1】:

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

    还有更简单的建议:

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

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

    【讨论】:

      猜你喜欢
      • 2018-06-12
      • 1970-01-01
      • 1970-01-01
      • 2020-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-03
      • 2021-06-03
      相关资源
      最近更新 更多