private docker image with docker-compose issue #123
-
Hi all, I'm having a hard time deploying my nextjs, strapi & postgress application on dockploy with docker-compose. I have an organization on github with a private monorepo. On branch push I've setup a workflow to build and publish both docker images, the strapi app and the nextjs app, against the github registry. This all works fine and as expected and I can directly use my docker-compose.yml with a reference to the images on a Portainer instance without issues. But with Dokploy I'm getting this error about being unauthorized to access a manifest.... No idea what this means to be honest since I haven't heard of those manifest in a docker context yet :). I've authorized Dokploy to access my private repo via the dedicated Settings page (Github App), in the Cluster settings I've added the github registry with my credentials, and I've additionally authenticated via Terminal on my VPS directly via Any ideas what I'm missing? ╔══════════════════════════════════════════════════════════════════════════════╗
║ ║
║ App Name: compose-connect-1080p-matrix-991r83 ║
║ Build Compose 🐳 ║
║ Detected: 0 mounts 📂 ║
║ Command: docker compose -p compose-connect-1080p-matrix-991r83 -f ║
║ ./docker-compose.yml up -d --build --remove-orphans ║
║ Source Type: docker github ✅ ║
║ Compose Type: docker-compose ✅ ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════╝
backend Pulling
frontend Pulling
frontend Error Head "https://ghcr.io/v2/ORGNAME/REPONAME/manifests/frontend": unauthorized
backend Error context canceled
Error response from daemon: Head "https://ghcr.io/v2/ORGNAME/REPONAME/manifests/frontend": unauthorized
ERROR: Error: child exited with code 18: ❌ |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Got it, The registry is used purely on docker swarm, not for docker compose, This is a good case where we can handle this, Because I didn't take in consideration this way like to use a private image, let's move to an issue since this is really a need! |
Beta Was this translation helpful? Give feedback.
-
I created a issue #125 |
Beta Was this translation helpful? Give feedback.
-
@s1rd4v3 I was a long time looking for a solution to this but apparently you can not mount the authentication file from the container to the host, the way to solve it is to pass this flag with the path where the authentication json is, I made some small changes in the code that when you use the Note, In the new update v0.2.0 just make sure to recreate the registry and use the Before using the enviroment, error authenticated The image is being downloaded and executed sucessfully! Let me know if you have some questions or bugs! |
Beta Was this translation helpful? Give feedback.
-
@Siumauricio |
Beta Was this translation helpful? Give feedback.
I created a issue #125