Closed SysLunix closed 4 years ago
i'm not 100% sure if this is the correct way to do this, but here's how i got it working:
1) exposed port 5000 of the gitlab container in the docker-compose.yml. the registry has no port exposed at all, everything goes through gitlab.
2) the gitlab service has
external_links:
- "registry:registry.example.com"
the registry service
external_links:
- "gitlab:gitlab.example.com"
not sure if this is still necessary, but it helped at some point in the past ^^
3) the upstream of the registry:443 nginx config has a different upstream: https://registry.example.com:5000
instead of http://localhost:5000
4) i'm using the proper certs for registry.example.com in the certs folder, not a self-signed one
5) in the docker-compose.yml:
- "GITLAB_REGISTRY_PORT=5000"
- "GITLAB_REGISTRY_CERT_PATH=/certs/registry.crt"
- "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/fullchain.pem"
- "REGISTRY_HTTP_TLS_KEY=/certs/privkey.pem"
hth
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.
I cannot delete private or public repository from docker hub
i try with this command curl -s -v -H “Authorization: JWT ${HUB_TOKEN}” -X DELETE “https://hub.docker.com/v2/repositories/mohd/test2/”
got error 400 BAD REQUEST Connection #0 to host hub.docker.com left intact {“detail”: “There was an error. The repository was not deleted.”}
Hello everyone, I come to post my problem after hours of searching without finding the cause.
The context:
Gitlab and the Docker Registry behind a Nginx reverse proxy on the host machine. The Gitlab seems to work well however the container registry returns me a 400 Bad Request error when I try a docker login.
My docker-composes.yml :
registry key generated by :
reference : https://github.com/sameersbn/docker-gitlab/blob/master/docs/container_registry.md
My Nginx Configuration :
For Gitlab :
For the registry :
docker version / docker ps result :
a result of
curl -Lv https://registry.example.io/v2
docker login result :
I tried with the Gitlab account and also with a Personal Token Access and a Deploy Key, same error...
If you have an idea and need more information I thank you in advance