Does Portainer (Agent Mode) automatically reuse docker login credentials of the (docker swarm) service? #12768
Replies: 3 comments 1 reply
-
@deviantony @SvenDowideit @huib-portainer maybe 🙏 |
Beta Was this translation helpful? Give feedback.
-
@YuryHrytsuk is the image being pulled a public image? Can you please give me an example of your deployment so I can replicate |
Beta Was this translation helpful? Give feedback.
-
@YuryHrytsuk Thanks, the registry will need to be configured within Portainer to work, it will not work based on your CLI authentication. If possible it would be best to have the registry configired within Portainer and deploy the stack for your Swarm via Portainer as well to avoid this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ask a Question!
We run a docker swarm and Portainer (Agent mode). Some of our services use images from private docker hub repositories. We deploy services, by executing
docker stack deploy --with-registry-auth -c stack.yml
command on Docker Swarm Node (it works). If I later try to update image of the service in Portainer, it fails to pull image (see error log coming from journalctl on the swarm node). Our Portainer has NO registries configured. All Swarm Nodes are docker logged in.Versions
Question
docker stack deploy --with-registry-auth -c stack.yml
~/.docker/config.json
--with-registry-auth
cli option, ...)Related Issues / Discussions:
~/.docker/config.json
, especially regarding proxies definition #8715Beta Was this translation helpful? Give feedback.
All reactions