whats-up-docker
whats-up-docker copied to clipboard
Can WUD pick up temporary containers?
I have some containers in my infrastructure (defined in docker compose files) which are by nature very short lived. One example would be a Renovate container which just starts up periodically searches for new dependencies and then shuts down again. WUD is a great tool for me to keep the container versions up to date but currently I fail in monitoring these "temporary" containers like renovate. I do not see them in the dashboard and cannot really reliably update them. Of course I could try to time the WUD cron schedule such that WUD might run during the execution of such a container but this approach does not seem reliable to me since I cannot really predict how long the container will be alive. Is there any solution WUD could offer for this problem?
Hi,
There are 2 different situations I think:
- A container is permanently created then a scheduler starts/stops it periodically
- A scheduler creates/destroys an ephemeral container periodically
For the 1st situation
wud
can handle it by enabling the env var WUD_WATCHER_{watcher_name}_WATCHALL=true
, which means to watch the containers even if they are not running.
Please find the documentation here
For the 2nd situation It's a missing feature, for sure.
Which situation is your case?
I'm actually in the first category so I'm going to try that out. Thank you very much!