【发布时间】:2016-03-19 16:42:38
【问题描述】:
我很久以前就遇到过这个问题,根本无法解决。谁能帮帮我?
我创建了一个 docker 容器,然后在 docker 内部,我想克隆一个内部 git 存储库:
git clone git@git.xxx.net:ngcsc/ngcsc.git
我得到了这个错误:
ssh: connect to host git.xxx.net port 22: No route to host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
如果我使用 curl https://git.xxx.net, 我也遇到了错误:
curl: (7) Failed connect to git.xxx.net:443; No route to host
我可以 curl 其他 https 网站,比如 curl https://www.google.com
我不知道为什么有些内部网站可以在 docker 中访问,有些则不能。任何建议表示赞赏
【问题讨论】: