Unable to log in to container registry
Summary
Gitlab Version: 10.3.0
Client Docker Version: 17.09.1-ce
Container Registry is enabled, and I am prompted to run docker login registry.gitlab.mydomain.com
. Output from running that command:
$ docker login registry.gitlab.mydomain.com/
Username: tgrosinger
Password:
Error response from daemon: Get https://registry.gitlab.mydomain.com/v2/: Get https://gitlab.mydomain.comjwt/auth?account=tgrosinger&client_id=docker&offline_token=true&service=container_registry: dial tcp: lookup gitlab.mydomain.comjwt on 192.168.0.1:53: no such host
When I curl this URL manually, but insert a "/" in between "mydomain.comjwt" I get a very different (and seemingly more functional) response.
Where is this request URL coming from and why is it missing a slash? I have tried adding a trailing slash to my configured registry_external_url
in /etc/gitlab/gitlab.rb
however that had no effect.
Steps to reproduce
See setup above, let me know if there is more info I can provide.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.5p376 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.13.6 Sidekiq Version:5.0.4 Go Version: unknownGitLab information Version: 10.3.0 Revision: fd9dd4c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://gitlab.mydomain.com HTTP Clone URL: http://gitlab.mydomain.com/some-group/some-project.git SSH Clone URL: git@gitlab.mydomain.com:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.10.2 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git