【问题标题】:Docker build failed because of "port 443: Connection timed out"由于“端口 443:连接超时”,Docker 构建失败
【发布时间】:2016-04-25 08:41:45
【问题描述】:
$ 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 构建一个弹性节拍(buehler 的 twitterbeat)。 即使我设置了代理,我也会收到此错误。我也重新启动了机器。 我尝试了其他讨论中的所有内容。 (编码密码,设置git代理等)

我做错了什么?

【问题讨论】:

  • 你能用curlwget访问docker主机上的那个git链接吗?听起来不像是 docker 问题,错误信息也很清楚:无法访问 'github.com/Masterminds/glide.git': Failed to connect to github.com。
  • curl: (5) 无法解析代理 'xxxxx@proxy.xxxxxx.ch'。我的密码是:xxxxxxxxxxxxxx@xxxxx。我认为这与那个“@”有关。我把它改成了 %40
  • 不,它没有...@CFrei
  • 找出无法从 docker 主机访问 github 的原因。能ping通github吗?你有代理问题吗? (我不明白“无法​​解析代理”的事情......)
  • 密码里面有一个“-”,github不喜欢“-”,所以我不得不更改密码。不接受百分比写作。现在可以了

标签: git docker go proxy glide-golang


【解决方案1】:

密码中有一个“-”,github不喜欢“-”,所以我不得不更改密码。不接受百分比写作。现在可以了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-10
    • 1970-01-01
    • 1970-01-01
    • 2021-10-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多