-
Notifications
You must be signed in to change notification settings - Fork 12
[BUG] Docker Swarm mode not seeing images/containers #59
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
Comments
Hello! Thanks for opening this issue! I haven't tested with swarm at all, but it should be working fine. I'll try to investigate as soon as I can and I'll update you. |
I tried running a local swarm with my server as manager and my PC as a worker and started a stack with 2 replicas running Cup. All images were checked normally. Honestly, I have no idea what could be going wrong. Could you please share your configuration so I can test that too? |
I have also noticed that images used by swarm stack deploys are not actually by default usable by normal docker. If you prune all whole setup and then deploy a stack, and then try to do: Example where the image is in If you then pull it (it will then use/transfer the stack image) and run the history command again it will work. It seems that swarm stacks handle images a bit differently than regular docker compose and docker commands. |
Hello! Thanks for debugging the issue! The extra images are most likely not shown because they don't have a tag. Are you pulling by digest? I'll try to reproduce the problem you described and further debug it. |
For Dozzle I used: services:
dozzle:
image: mirror.gcr.io/amir20/dozzle:latest
... All my stacks except for some exceptions all have I am not sure why they don't have a tag when inspecting them with |
It appears you are right, Docker Swarm uses image with digest (label gets resolved to digest), so if Cup checks using label, it won't work. Docs: https://docs.docker.com/engine/swarm/services/#specify-the-image-version-a-service-should-use |
That also explains why |
I need both the tag and the digest to check for an update, so I think Swarm is unsupported. I'm really sorry! I'll try to find another way to check for updates without the tag, but I doubt I'll find anything. |
No worries, I am using Shepherd and it works. I just really liked the Cup's UI and on-demand updates, so I wanted to test it out. Docker Swarm just has many edge cases, which effect a lot of the tooling unfortunately. |
Hey @mihakrumpestar! I took a look into how Shepherd works and I'm going to try to add the required functionality to Cup. It should be able to check for updates to Docker Swarm images (although it won't be handling automatic updates like Shepherd, as I think that's beyond the scope of this project). Can you please test? Grab a binary from here or use the I hope it works for you! |
@mihakrumpestar I'm glad it worked for you. I'm waiting to see if #64 was caused by this. If it wasn't I'll release a new stable version and close this issue. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Running this on a docker swarm mode results in Cup not seeing any images/containers.
To Reproduce
Run on Docker swarm mode with containers deployed as stacks (only sees itself when running CLI, does not see even itself when deployed as Docker Swarm stack):
Expected behavior
Works on regular docker install, list images and updates.
Screenshots
If applicable, add screenshots to help explain your problem.
System info (please complete the following information):
Additional context
Add any other info that you think may be useful here.
The text was updated successfully, but these errors were encountered: