Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

Forbidden error when trying to access the registry in a gitlab inside a docker container on red hat server

Good morning, I am deploying a container with a gitlab, which has worked perfectly so far, the question is that I want to use the registry but I find myself with the problem that I configure it, but when I go to login I the following appears:

[dockermd@srvdevrma1 ~]$ docker login 10.164.7.203:37001
Username: e10697
Password:
Error response from daemon: Get https://10.164.7.203:37001/v2/: Forbidden

For the container configuration, I am using port 37001 to expose the gitlab in https and 443 inside the container. I have the gitlab.rb configuration as follows, for the registry:

registry_external_url 'https://10.164.7.203:37001'
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = "10.164.7.203"
gitlab_rails['registry_port'] = "443"
gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"

I have the rest commenting I am behind a proxy, however, the proxy should only affect internet output, not internally, since gitlab is for internal use. Any indication what may be happening? I can enter my gitlab normally with the specified port:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...