-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Image name not available when using watchtower or similar #5799
Comments
The use of compose-cli was introduced by #4776. |
Exactly, and got released with portainer 2.9.0 |
Same here and with portainerci/portainer:develop (2.9.1) too. Thanks for the workarround info. |
I noticed I'm having the same problem on arm plateform (not arm64). |
I'm having the same problem too. Same settings. In arm64 architecture too. |
I've the same issue in ARM64. Usually, the first deployment of the stack is correct, but updating the stack removes the image name. |
I edited my first post after noticing that I made a copy/paste mistake and haven't provided the upstream solution: docker-archive/compose-cli#1997 |
So the current latest release of compose-cli is v1.0.17, and that merged PR isn't in any release yet. |
You are unfortunately right! That's partly why I made this issue, as I said in my initial post:
I hope a release with this PR is coming quickly! |
I just checked and it is not entirely true, the PR was merged and released in v2.0.0-rc.2 available here: https://github.com/docker/compose-cli/releases/tag/v2.0.0-rc.2 |
Hi, the corresponding PR (docker-archive/compose-cli#2038) is merged from v1.0.18 https://github.com/docker/compose-cli/releases/tag/v1.0.18 I suppose it's a smaller task to integrate than the v2RC. |
Sweet! Thanks for notifying us. We'll take a look at it shortly. |
and now they're at v1.0.21 - https://github.com/docker/compose-cli/releases - and still "pre-release" :/ |
They have released 1.0.22 as pre-release 18 Days ago. |
You can give it a try by using the image |
I still get only image hashs instead of image names on redeployment of my images. |
Thanks for the feedback! |
@Boergen I try to reproduce the issue you mentioned with below steps but can not reproduce it. Can you help to check what did I miss? |
@crystalcui8 what is your architecture?
|
@chevcheli0s I use ARM64 and the image portainerci/portainer:develop. |
@crystalcui8
And again to prove the workaround:
Same can be reproduced with all other stacks in my setup. Running on a Raspberry Pi 4b with latest and updated 32bit Pi OS Lite (Buster). |
@Boergen I just reproduced the issue following your steps with 2.11.0, the Image name was hashed and the error message found in the log of watchtower as below. But, the fix has been included in 2.11.1, so I repeated the steps with 2.11.1 and It works well. |
Exactly!! |
@RoggerFabri I try to reproduce the issue you mentioned with 2.11.1 but failed. Can you please help to check what did I miss? |
Well... you did exactly as I did, your steps are correct. I tried it again, but I still have the issue mentioned above. |
@RoggerFabri We use the different one. |
Updating to 2.11.1 also did not change the incorrect behaviour for me:
|
I can confirm that this solves the issue! Thank you, @chevcheli0s :) |
OK, I confirm that this solves the issue. Steps I followed:
|
@BetaAthe , @chevcheli0s, @RoggerFabri I tried this but it doesn't work for me: I went to Whenever I do |
@devedse are you sure you are looking at the correct field? |
@chevcheli0s , I did some more investigation and I found out that I was looking at the wrong field. The correct image name is now located in Config\Image. So my issue has also been resolved, I was just checking the fix incorrectly :). You can use this command to see all image names:
|
@RoggerFabri @BetaAthe @chevcheli0s I reproduced this issue under upgrade to 2.11.1 and the workaround works too. Thank you so much! |
The fix has been merged into develop branch. Can you please give it a try by using the image portainerci/portainer:develop? |
@RoggerFabri @BetaAthe @chevcheli0s sorry to trouble you. Could you please give a try for the fix? |
Seems to be fixed with 2.11.1 :) Thank you <3 |
no same issue since 2.11.1 came out |
Try to stop the stack, delete the image and then start the stack. It didn't work without deleting the image on my instance. EDIT: Reproduce: |
@NotSoFunnyClown Can you share more ENV info? Which portainer image do you use? Is the issue under fresh install or upgrade? |
Yeah well... i see... I do not use the image where you fixed it :( My fault. Sorry. |
@NotSoFunnyClown It will merged into portainer/portainer-ce:latest later on but not soon. Can you please use the image portainerci/portainer:develop to have a try? |
@crystalcui8 Ok i now run |
Bug description
On standalone stacks (arm64 2.9.0) the image name is not available (only the sha256 fingerprint is) for auto-updating programs (such as watchtower), making the auto-updating process fail.
Expected behavior
The image name should be available, allowing the autoupdating process
Portainer Logs
//not relevant (I think)
Steps to reproduce the issue:
Technical details:
Additional context
This problem appeared with portainer 2.9.0 (on arm64 platforms) because https://github.com/docker/compose-cli is used for standalone stack. The bug has been reported here: containrrr/watchtower#1050 and is already solved here: docker-archive/compose-cli#1997
I'm filing this issue to let you know about it and to make sure the next compose-cli version will be merged to portainer to solve this.
Workaround
Use docker-compose (not docker compose, mind the -) from command line to deploy the stack instead of the portainer GUI.
The text was updated successfully, but these errors were encountered: