-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Update with 'Pull latest image version' doesn't work with an authentified registry #7004
Comments
I've encountered the same issue and verified that this issue does not exist on the swarm itself when using the --with-registry-auth flag. It seems like the --with-registry-auth flag is potentially not being applied to portainer's docker commands where it is required (those operating on a private registry) |
After updating to 2.13.1 we have the same issue I believe. Using a webhook we get this respone
going to image list in portainer and pulling the same image works fine. |
Having same/similar issue with a private registry, even though I have it configured in Portainer, everytime I restart a service it rejects all deployments with I have to then get Portainer to pull the image manually (through the images tab), and then the service will start. However this is causing issues as it means things can't balance as unless I manually pull the image to each host it's ineligable to start there. I'm using version 2.13.1. |
We downgraded to 2.11.1 and everything has been working great since. |
We have a fix for this in the works to be included in our 2.14 release. Please keep in mind it is a development build and should not used in Production. |
Yes, this has been resolved in 2.14: #7095 |
Hello, I am running a 3 node Docker Swarm. The portainer volume is placed on a nfs share. Pulling the images manually via the "Images" button works fine with the configured registry (I’m using authenticated DockerHub). But now I need to download all images to all 3 nodes manually, which is really annoying. After that I can deploy / update the stack without any problem. Technical details:
Also my system is showing the following strange behavior: Endless “Image up to date” is running and stuck: Many thanks for your help. |
Share logs from each of the portainer agent containers, also look at updating to 2.15.1 if possible. |
Hello @samdulam, as soon as I try to start the stack I get the following error: In the portainer_agent logs I can see the following error (I took a look via “docker service logs portainer_agent” -f):
The error is created by the correct node on which the container is supposed to be started (the timestamp is different from the screenshot but the events occurred at the same time). The configured credentials for docker.io are correct. I can download the image by using the “Pull Image” feature under the “Images” button. I hope this information helps you. |
Hello again @samdulam, a few more things from my side:
I'm not able to find / think about any other configuration which could explain the problem. Many thanks for your help. |
Hello! I appreciate the hard work the Portainer team puts into maintaining the project. However, I’ve noticed that this issue still persists in version 2.19.4, and it can be quite frustrating. Could you kindly provide any information about the timeline for fixing this issue? Thank you |
@samdulam, maybe reopen this issue or ask user to raise separate? |
@kasraJ Thanks |
Bug description
When container's update with 'Pull latest image version' enable, image was not pull. (rejected)
Registry log : error authorizing context: authorization token required
If i delete service and update the stack, that works.
Expected behavior
Portainer must pull new image
Steps to reproduce the issue:
Technical details:
docker run -p 9443:9443 portainer/portainer
): docker-compose run -dThe text was updated successfully, but these errors were encountered: