Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: pulling private gcr.io (Google Cloud Artifacts Registry) Docker image fails #4763

Open
djaax opened this issue Jan 7, 2025 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@djaax
Copy link

djaax commented Jan 7, 2025

Error Message and Logs

I'm unable to deploy a docker image from a private Google Cloud Artifacts Registry.

Through the Coolify UI, I opened a Terminal session on localhost and installed all the gcloud stuff successfully. Here, I can simply pull my docker image, e.g. docker pull gcr.io/my-project/app:latest, no problem.

However, when I create a new Resource, select Docker Image and set the Docker Image to the same gcr.io/my-project/app:latest and click Deploy on the Configuration page, I get the following error in my Deployment Logs:

error getting credentials - err: exec: "docker-credential-gcloud": executable file not found in $PATH, out:''

In the localhost terminal, which docker-credential-gcloud returns a valid path that is in my $PATH.

It appears that my setup through the localhost terminal is not applied to wherever the docker pull is executed.

Steps to Reproduce

Prerequisites: Clean Coolify instance, a private Docker container in the Google Artifacts Registry, and a GCP service account with Artiacts Registry Admin permissions (as key.json).

  1. Install gcloud through Coolify Terminal
  2. Authenticate this Service Account on your Coolify machine through the Coolify Terminal: Save key.json locally and authenticate with gcloud auth activate-service-account --key-file key.json
  3. Configure Docker using gcloud auth configure-docker gcr.io
  4. Test this first: In the Terminal, pull image manually docker pull gcr.io/my-project/app:latest – this should succeed
  5. In Coolify, create a new Resource > select Docker Image > set Docker Image to your repo gcr.io/my-project/app:latest – this fails

Example Repository URL

No response

Coolify Version

v4.0.0-beta.380

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24

Additional Information

No response

@djaax djaax added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant