Notifcations -- Container names that require updates #1614
Unanswered
liquidsunshine
asked this question in
Q&A
Replies: 1 comment
-
Almost. You can get a list of such containers with newer images using a combination of docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--monitor-only \
--notification-report \
--notification-template '
{{- with .Report -}}
{{- range .Stale -}}
Found new {{.ImageName}} image ({{.Name}}: {{.CurrentImageID.ShortID}} -> {{.LatestImageID.ShortID}})
{{- end -}}
{{- end -}}
' Result:
Watchtower has no knowledge of any versions of the software inside the containers though... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm using Watchtower for update notifications, but not automatic updates. I want to have a chance to read the changelogs before performing updates.
As such, it would be very helpful to know which containers require updates.
Right now I get emails like this:
But since I use MariaDB, Postgres, and nginx in several stacks (sometimes with different versions; sometimes with Alpine and sometimes a different base) I end up having to do some hackery to figure out which containers actually use those images.
Is there a way to get output closer to this?:
(where appname_postgres and appname_nginx are specific containers that use the alpine flavors of those containers)
I didn't find any previous discussions about this, and it wasn't clear how to do this from the notifications documentation in Watchtower. Apologies if I missed something obvious.
Beta Was this translation helpful? Give feedback.
All reactions