Project

General

Profile

Actions

Bug #18222

open

Cannot add gitlab host docker registry as a new registry with the foreman-docker plugin

Added by Shaun Martin about 7 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

gitlab offers docker registry hosting, my company uses a private one but there are public one's. When you try to add a gitlab docker registry to foreman through the UI. You get the following

stfile1.txt
2017-01-24 09:46:02 2806801f [app] [I] Started POST "/registries" for 10.101.1.142 at 2017-01-24 09:46:02 -0600
2017-01-24 09:46:02 2806801f [app] [I] Processing by RegistriesController#create as HTML
2017-01-24 09:46:02 2806801f [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"jSFsLm28tcvL30GgPXBGWk+Bq0xMFNiMQM4/aPQtBq+vt5Q5JqhgyTgCOuCFu+WglHM6jhBi22bThfEjCyydSw==", "docker_registry"=>{"name"=>"test", "url"=>"https://COMPANYXYZ.githost.io", "description"=>"test", "username"=>"", "password"=>"[FILTERED]"}, "commit"=>"Submit"}
2017-01-24 09:46:02 2806801f [app] [I] Failed to save: Unable to log in to this Docker Registry - 404 Resource Not Found: 404 page not found

I can use the docker cli to login to the registry without issue.
  1. docker login COMPANYXYZ.githost.io
    Username:
    Password:
    Login Succeeded

Some basic docs on gitlab container registry - https://about.gitlab.com/2016/05/23/gitlab-container-registry/ - https://docs.gitlab.com/ee/user/project/container_registry.html

Here are some public registries that work with a default gitlab login that you can test with. These also work with docker login but fail with foreman new registry through the web ui with the same error.

https://gitlab.com/gbraad/cirros/container_registry
https://gitlab.com/tvaughan/docker-lein/container_registry

No data to display

Actions

Also available in: Atom PDF