coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Docker Registries Gitlab

Open inluxc opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Example public repository

No response

Description

I registered gitlab register in coolify colify


And i try to use an private container image in a docker-compose.yml from an application e tells its does not have access.

Error response from daemon: Head "https://registry.gitlab.com/v2/*************/*************/manifests/latest": denied: access forbidden
[16:17:18.975] Command failed with exit code 18: docker compose --project-directory /tmp/build-sources/************/*************/cldeq8iux004wagnsdd5ac3zw -f /tmp/build-sources/************/*************/cldeq8iux004wagnsdd5ac3zw/docker-compose.yml pull
app Pulling 
mysql Pulling 
redis Pulling 
app Error 
mysql Error 
redis Error 
Error response from daemon: Head "https://registry.gitlab.com/v2/promology/magento211/manifests/latest": denied: access forbidden

Do i need to do any thing else? i tried the credentials locally and it worked fine.

Steps To Reproduce

  1. Create New Resource
  2. New Application
  3. Add repository from an integrated git app (gitlab.com)
  4. Choose project, repo and version
  5. And deploy

Version

v3.12.17

inluxc avatar Jan 27 '23 18:01 inluxc

I think this is because adding GitLab App and authenticating there, doesn't mean it will automatically generate deploy token for you.

Can you try following steps to manually authenticate with GL Registry?

  • Generate a Personal Access Token (from your profile settings page), or generate a new Deploy Token (in Project/Group Settings page).
  • Go to Settings → Docker Registries
  • Add new docker registries, use following setting:
    • URL: registry.gitlab.com
    • username: your username, if you're using personal access token, or; the token's username if you're using deploy token.
    • passowrd: the token.

Reference: https://docs.gitlab.com/ee/user/packages/container_registry/authenticate_with_container_registry.html

chez14 avatar Jan 28 '23 18:01 chez14

But that's what i did, as you can see in the screenshot

inluxc avatar Jan 28 '23 18:01 inluxc

Ah my bad, I didn't read the logs properly, sorry!

chez14 avatar Jan 28 '23 19:01 chez14

Same issue here.

I also tried with an access token created with all available rights in Gitlab. Without any success (whereas the docker login registry.gitlab.com commands succeeds)

ebreton avatar Jan 29 '23 13:01 ebreton

I'm closing this issue, because tracking features will be moved to GitHub discussions. Github issues will be only for bugs.

Version 4 is in full focus. v3 related issues will be closed, if it is not a critical bug.

Thanks for your understanding.

andrasbacsai avatar Sep 08 '23 09:09 andrasbacsai