dougu3988
2016-04-25 08:41
采纳率: 100%
浏览 1.1k

Docker构建因“端口443:连接超时”而失败

$ 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

我想用docker建立一个弹性的beat(由Buehler推拍)。不过即使我设置了代理,我也会得到这个错误。我也重新启动了机器,试过了其他讨论中的每一个建议(编码密码、为git设置代理等),但都没用。

到底哪儿错了?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dtbrd80422 2016-04-28 09:19
    已采纳

    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.

    打赏 评论

相关推荐 更多相似问题