2021年4月5日星期一

gitlab http clone url is wrong,port 80 missing

I use docker install gitlab.

Step 1: docker run -d
-p 8023:443
-p 8020:80
-p 8022:22
--name gitlab
--restart always
-v /home/gitlab/config:/etc/gitlab
-v /home/gitlab/logs:/var/log/gitlab
-v /home/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce

step 2: vi /home/gitlab/config/gitlab.rb external_url 'http://192.168.71.5' gitlab_rails['gitlab_ssh_host'] = '192.168.71.5' gitlab_rails['gitlab_shell_ssh_port'] = 8022

step 3: docker exec -it gitlab /bin/bash
gitlab-ctl reconfigure docker restart gitlab

When I add a new project new-test in gitlab,then open the new-test. The clone with http is http://192.168.71.5/root/new-test.git. when use git clone http://192.168.71.5/root/new-test.git. There is something wrong.

fatal: unable to access 'http://192.168.71.5/root/new-test.git/': Failed connect to 192.168.71.5:80; Connection refused enter image description here

why the url is not http://192.168.71.5:80/root/new-test.git?

https://stackoverflow.com/questions/66961517/gitlab-http-clone-url-is-wrong-port-80-missing April 06, 2021 at 09:05AM

没有评论:

发表评论