Docker构建失败,原因是“端口443:连接超时”。

huangapple go评论88阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2016年4月25日 16:41:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/36835685.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定