在raspberry pi中生成docker映像时出错
我试图在Raspberry Pi Kubernetes集群中创建自己的随机调度器映像,但是当我使用命令在raspberry pi中生成docker映像时出错,docker,raspberry-pi,Docker,Raspberry Pi,我试图在Raspberry Pi Kubernetes集群中创建自己的随机调度器映像,但是当我使用命令 docker build -t angel96eur/marton-randomscheduler . 我明白了: Sending build context to Docker daemon 185.9kB Step 1/13 : FROM golang:1.11-alpine as backend ---> 2bf7a3ec2cd3 Step 2/13 : RUN apk ad
docker build -t angel96eur/marton-randomscheduler .
我明白了:
Sending build context to Docker daemon 185.9kB
Step 1/13 : FROM golang:1.11-alpine as backend
---> 2bf7a3ec2cd3
Step 2/13 : RUN apk add --update --no-cache bash ca-certificates curl git make tzdata
---> Using cache
---> 5e5d9d12a87e
Step 3/13 : RUN mkdir -p /go/src/github.com/martonsereg/scheduler
---> Using cache
---> 98179cd910c6
Step 4/13 : ADD Gopkg.* Makefile /go/src/github.com/martonsereg/scheduler/
---> Using cache
---> 70c615ff07f6
Step 5/13 : WORKDIR /go/src/github.com/martonsereg/scheduler
---> Using cache
---> 7cdb09255a20
Step 6/13 : RUN make vendor
---> Running in 2f0555b065c7
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | INSTALL_DIRECTORY=bin DEP_RELEASE_TAG=v0.5.0 sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5230 100 5230 0 0 14487 0 --:--:-- --:--:-- --:--:-- 14487
ARCH = arm
OS = linux
Will install into bin
Release Tag = v0.5.0
Fetching https://github.com/golang/dep/releases/tag/v0.5.0..
Fetching https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-arm..
Request failed with code 404
make: *** [Makefile:37: bin/dep-0.5.0] Error 1
The command '/bin/sh -c make vendor' returned a non-zero code: 2
错误可能在哪里?您的日志显示在构建容器时版本下载失败:
Release Tag = v0.5.0
Fetching https://github.com/golang/dep/releases/tag/v0.5.0..
Fetching https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-arm..
Request failed with code 404
综上所述,golang/dep回购
v0.5.0
没有dep linux arm
发行资产。最接近arm版本的版本似乎是v0.5.1
,因此您可能需要将DEP_RELEASE_标签更改为该版本。golang/DEP repov0.5.0
没有DEP linux arm
发布资产。最接近arm版本的版本似乎是v0.5.2
,因此您可能需要将DEP\u RELEASE\u标签更改为该版本。您可以在这里再次检查:您是否可以发布完整的Dockerfile?这是Dockerfile``@engel您可以编辑您的帖子,将Dockerfile包括在内,而不是作为评论发布?谢谢