Skip to content
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

Possibility to exclude containers with a label? #126

Open
saschabrockel opened this issue Jan 31, 2024 · 8 comments
Open

Possibility to exclude containers with a label? #126

saschabrockel opened this issue Jan 31, 2024 · 8 comments

Comments

@saschabrockel
Copy link

Is it possible to use a label to specify containers that should be excluded from autoheal instead of being included? I have 100 containers and I don't want to add labels for inclusion to 99 ones because one shouldn't be auto-healed.

@tmknight
Copy link

tmknight commented Feb 18, 2024

This seems to be the same as #73 which has been addressed by #84

@MrClever
Copy link

This is as good of an explanation as any other on how to achieve what you're asking: https://sdr-enthusiasts.gitbook.io/ads-b/useful-extras/auto-restart-unhealthy-containers#only-monitor-and-restart-a-specific-set-of-containers

@saschabrockel
Copy link
Author

@MrClever as I stated, it's not nice to change 99 containers for that and add a label to all of them.

@MrClever
Copy link

MrClever commented Feb 25, 2024

MrClever as I stated, it's not nice to change 99 containers for that and add a label to all of them.

@saschabrockel Fair enough - I forget not everyone auto-generates their configuration files from templates etc 👍🏻 In my case, it was literally two lines to update hundreds of images.

@saschabrockel
Copy link
Author

@MrClever what kind of templates? I mean we all have compose files I guess but that's obviously not what you mean.

@MrClever
Copy link

MrClever commented Feb 25, 2024

I have a bespoke system for generating compose files etc which populates all the repeated stuff. The container configurations are stored in a custom MySQL DB...it wasn't my creation, but it "works" (most of the time). These days, I'd prefer to replace it with a "proper" orchestration framework, but it works well enough that I can't really justify the time/cost to replace it :(

@saschabrockel
Copy link
Author

Okay never heard of it. I know infrastructure as code and things like Ansible of course but never heard of something that is stored in MySQL 😆

@MrClever
Copy link

Okay never heard of it. I know infrastructure as code and things like Ansible of course but never heard of something that is stored in MySQL 😆

Yeh, like I said, give me Ansible/Puppet/Chef/etc any day...this thing can be a pain, but it also makes mass changes to configurations easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants