我使用CentOS将Docker Notary Git存储库克隆到了我的Linux机器上。
然后,在构建它时,我遇到以下错误:
[root@docker-notary-vm]# cd notary
[root@docker-notary-vm]# docker-compose build
mysql uses an image, skipping
Building signer
Step 1/13 : FROM golang:1.10.3-alpine
---> cace225819dc
Step 2/13 : RUN apk add --update git gcc libc-dev
---> Running in 365bda8092d5
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.8/main: operation timed out
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.8/community: operation timed out
(1/19) Installing binutils (2.30-r5)
ERROR: binutils-2.30-r5: operation timed out
(2/19) Installing gmp (6.1.2-r1)
ERROR: gmp-6.1.2-r1: operation timed out
(3/19) Installing isl (0.18-r0)
(4/19) Installing libgomp (6.4.0-r8)
ERROR: isl-0.18-r0: operation timed out
...
在CentOS和Docker中都正确设置了代理设置。
有什么想法会导致问题,以及如何解决?
我正在按照https://docs.docker.com/notary/running_a_service/中所述的安装和构建步骤进行操作。但是,错误弹出吗?也许CentOS有一些特定的东西会导致构建过程失败?