Search code examples
dockergitlabdocker-registrygitlab-ce

Gitlab Container Registry missing image Tags


Hello everyone I hope you're doing okay ! I'm facing a problem in gitlab-ce

Problem :

can't see images tags after migrating gitlab to a new host

can't login to my registry using docker login http://gitlab.examlple.com:5005

returns :

Error response from daemon: Get "https://gitlab.example.com:5005/v2/": http: server gave HTTP response to HTTPS client

Orginal Instance :

My original Gitlab instance

New Instance

My new Gitlab instance

Migration Type:

backup the original gitlab and restore it in the new Instance

Changes Made :

  • changed the external_url in gitlab.rb to a new one (i didn't keep the ip adress)
  • changed registry_url

i hope someone can help me with this issue

thank you all in advance


Solution

  • The Problem was :

    The Port 5005 wasn't Opened in my new Instance, Gitlab was trying to access the registry but it couldn't

    Solution :

    Open port 5005

    Using RHEL 7

    firewall-cmd --zone=public --add-port=5005/tcp --permanent
    
    firewall-cmd --reload