Cant access private docker registry
Hi, I am trying to deploy my app with docker compose stack. But I get an error trying to pull the images from a private repository. I already checked the issues on github.
This is an example error message I have:
"Updating service melon-leads-app-services-dyvqsw_backend (id: mffc9i360jm9lbyzs5ob2bqzx)
image ghcr.io/patrick3131/melonleads-backend:staging could not be accessed on a registry to record
its digest. Each node will access ghcr.io/patrick3131/melonleads-backend:staging independently,
possibly leading to different nodes running different
versions of the image."
I already tried to add the Registry with various variations, I also tried to use docker hub, but same error.
I gave the token read and write access to the packages.
I ssh in to my server and logged docker in to github manually successfully.
I tried pulling the images manually on the server, that also worked.
I also tried to deploy a test project selecting docker as a provider for a single image, that also got pulled successfully.
Should I open an issue or is the fault on my side?
Anything I could further investigate?
Thank you


2 Replies
I had to add my x-credentials: to docker compose and also --with-registry-auth to the docker stack run command, should I open a github issue?
I'm running into the same issue Patrick. Try to deploy with docker stack using images from a private repo and I get these warnings (should be errors imo)
image cappig/shoplytic-grocery-admin:staging could not be accessed on a registry to record
Could you give me more details on your solution?