我刚刚开始使用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处理器是否有问题?请建议我一些解决方法。