-
Notifications
You must be signed in to change notification settings - Fork 863
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
None-scoped instances clean up scoped ones #1814
Comments
I cannot reproduce this problem locally: docker-compose.yaml: version: '3.7'
services:
watchtower-foo:
container_name: watchtower-foo
image: containrrr/watchtower:latest-dev
volumes: [ /var/run/docker.sock:/var/run/docker.sock:ro ]
command: --debug -lpretty --scope foo
labels:
com.centurylinklabs.watchtower.scope: foo
watchtower-none:
container_name: watchtower-none
image: containrrr/watchtower:latest-dev
volumes: [ /var/run/docker.sock:/var/run/docker.sock:ro ]
command: --debug -lpretty --scope none
labels:
com.centurylinklabs.watchtower.scope: none
depends_on: [ watchtower-foo ] # To make sure this starts after `foo` log output:
Both instances filter out each other:
@owine Perhaps the problem was due to the scoped watchtower instances not having labels set? |
Hi I am still experiencing this and will collect additional logs. My containers are deployed by ansible with the proper labels (startup notifications describe scopes as expected) but when I have tasks that stop start my containers, I end up with the none scoped instance cleaned up. I will provide some logs and additional detail for you. Thanks for investigating |
The startup notifications only show the label that the watchtower instance is looking for, not what label they have on themselves.
(where |
Thank you for clarifying. All instances did not have this label set on them. I will redeploy with this set and monitor. |
Just wanted to close the loop. The labels on the watchtower instances was indeed the issue. Thanks for the point in the right direction and clarifications. |
Thanks for the follow-up. I suspected that was the case because it's not the most user friendly configuration. Hopefully we can improve it at some point... |
Originally posted by @owine in #1800 (comment)
The text was updated successfully, but these errors were encountered: