whats-up-docker icon indicating copy to clipboard operation
whats-up-docker copied to clipboard

Can WUD pick up temporary containers?

Open t-pohl opened this issue 2 years ago • 2 comments

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?

t-pohl avatar Feb 07 '23 13:02 t-pohl

Hi,

There are 2 different situations I think:

  1. A container is permanently created then a scheduler starts/stops it periodically
  2. 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?

fmartinou avatar Feb 15 '23 17:02 fmartinou

I'm actually in the first category so I'm going to try that out. Thank you very much!

t-pohl avatar Feb 19 '23 20:02 t-pohl