Skip to content

Images in Registry are not displayed if proxy is enabled: no_proxy is not taken into account by registry

This issue has already been rised in https://gitlab.com/gitlab-org/gitlab-ce/issues/22722 & https://gitlab.com/gitlab-org/gitlab-ce/issues/20787 but maybe it's related to gitlab-omnibus, so I open it again here.

Problem description:

  1. In GitLab omnibus, I enabled the Container Registry and I pushed some images it works, the images are displayed in my project "Registry" tab
  2. Now, in my gitlab.rbI enable the proxy settings + gitlab-ctl reconfigure:
gitlab_rails['env'] = {
  "http_proxy" => "http://mycompany-proxy:3128", 
  "https_proxy" => "http://mycompany-proxy:3128",
  "no_proxy" => "127.0.0.1,localhost"
}
  1. Now in my project "Registry" tab, my images are not displayed anyymore 😢
  2. I remove the proxy settings from my gitlab.rb+ reconfigure : images appear again

It seems like the no_proxy var is ignored by GitLab Registry. Could you please have a look?

Regards, Pierre

Edited by Pierre Frayer