无法访问docker中的gitlab存储库

无法访问docker中的gitlab存储库,git,docker,gitlab,Git,Docker,Gitlab,我已经运行并创建了新的回购协议。当我尝试使用http或ssh克隆该repo时,我收到: fatal: unable to access 'http://root@3908eec185ce/root/my-awesome-project.git/': Could not resolve host: 3908eec185ce 以下是我克隆的方式: git clone http://root@3908eec185ce/root/my-awesome-project.git 我找到了解决办法。而不是

我已经运行并创建了新的回购协议。当我尝试使用http或ssh克隆该repo时,我收到:

fatal: unable to access 'http://root@3908eec185ce/root/my-awesome-project.git/': Could not resolve host: 3908eec185ce
以下是我克隆的方式:

git clone http://root@3908eec185ce/root/my-awesome-project.git

我找到了解决办法。而不是

http://root@3908eec185ce/root/my-awesome-project.git/
我用


听起来好像您没有正确配置GitLab。
/etc/gitlab/gitlab.rb
文件中的
external\u url
应该与您将用于克隆/推/拉并访问web UI的名称完全匹配。
http://root@[host]:[port]/root/my-awesome-project.git/