英文:
Docker build failed because of "port 443: Connection timed out"
问题
您正在尝试使用Docker构建一个弹性Beat(buehler的twitterbeat),但是遇到了错误。即使您设置了代理,重启了机器,也无法解决该问题。您已经尝试了其他讨论中提到的所有方法(如编码密码、为git设置代理等),但仍然无法成功。
您想知道自己做错了什么。
英文:
$ docker build buehler/twitterbeat
Sending build context to Docker daemon 96.26 kB
Step 1 : FROM golang:1.5.2
---> 9c67771abd78
Step 2 : MAINTAINER Christoph Buehler <christoph.buehler@bluewin.ch>
---> Using cache
---> 57cbdd07c195
Step 3 : ENV GO15VENDOREXPERIMENT 1
---> Using cache
---> fd69aeb2425d
Step 4 : RUN git clone https://github.com/Masterminds/glide.git $GOPATH/src/github.com/Masterminds/glide && cd $GOPATH/src/github.com/Masterminds/glide && make bootstrap && make build && cp ./glide /usr/bin
---> Running in 025c97c1cba1
Cloning into '/go/src/github.com/Masterminds/glide'...
fatal: unable to access 'https://github.com/Masterminds/glide.git/': Failed to connect to github.com port 443: Connection timed out
The command '/bin/sh -c git clone https://github.com/Masterminds/glide.git $GOPATH/src/github.com/Masterminds/glide && cd $GOPATH/src/github.com/Masterminds/glide && make bootstrap && make build && cp ./glide /usr/bin' returned a non-zero code: 128
I want to build an elastic beat (twitterbeat by buehler) with docker.
I get this error even if I set the proxies. I restarted the machine as well.
I tried everything that is in the other disucussions. (Encoding password, set proxy for git, etc.)
What am I doing wrong?
答案1
得分: 1
密码中有一个“-”,而GitHub不喜欢“-”,所以我不得不更改密码。百分号编写不被接受。现在它可以工作了。
英文:
The password had a "-" in it and github doesn't like "-" so I had to change the password. Percent-writing wasn't accepted. Now it works.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论