git - 由于 "port 443: Connection timed out",Docker 构建失败

标签 git docker go proxy glide-golang

$ 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设置代理等)

我做错了什么?

最佳答案

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

关于git - 由于 "port 443: Connection timed out",Docker 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36835685/

相关文章:

git - Jekyll 的 GitHub 页面中的帖子链接错误

installation - 无法在新的 debian 8 jessie 上安装 docker

go - 'go install' 找不到包 "fmt"

go - Go 中的相同算法、多种输入和输出类型的可能性?

git - 我需要从 Bitbucket Git 存储库中 check out 单个文件夹

c - fatal error : opening dependency file

git - 如何计算目录的 git hash-object?

visual-studio - 运行 dockerized .NET 核心应用程序时创建挂载源路径时出错

Docker 推送镜像到 Hub

go - 如何使用 Go 的时间包像 RFC3339 一样格式化时间,但没有时区(即本地时间)