No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dashie der otter d90752e058
Handle custom built images not on a repository
11 months ago
.gitignore Commit the monster 1 year ago
README.md Plop 1 year ago
docker-update-checker.py Handle custom built images not on a repository 11 months ago

README.md

docker-update-checker

What

  1. Edit the list of hosts on top of file
  2. Put in cron
  3. Profit
  4. ps: don’t forget to read the email to upgrade containers

Cron

You can do something like in /etc/cron.d/docker-update-checker:

MAILTO=you@somedomain.tld
# Run it every week, on monday
0 0 * * 1 root /usr/local/bin/docker-update-checker.py

And restart the cron daemon.

You will get an email with summary every week or whatever.

License

WTFPL

Example

Connected to docker 'oignon' endpoint tcp://192.168.10.11:2375, version 17.09.0-ce
Got 2 containers, 1 unique images to check.
[vladgh/minidlna:latest] old: sha256:3719f53b4b, pulled: sha256:3719f53b4b, diff: False

Connected to docker 'ananas' endpoint tcp://192.168.10.10:2375, version 17.09.0-ce
Got 3 containers, 3 unique images to check.
[sdesbure/domoticz:latest] old: sha256:50456ecf34, pulled: sha256:50456ecf34, diff: False
[jarischaefer/docker-librenms:latest] old: sha256:a24ac01b31, pulled: sha256:a24ac01b31, diff: False
[bnjbvr/kresus:latest] old: sha256:5328684afc, pulled: sha256:5328684afc, diff: False

Connected to docker 'luna' endpoint tcp://xxx:2375, version 17.09.0-ce
Got 7 containers, 7 unique images to check.
[phlak/mumble:latest] old: sha256:be19505926, pulled: sha256:be19505926, diff: False
[sunx/seafile:latest] old: sha256:0b5f7fe8e0, pulled: sha256:0b5f7fe8e0, diff: False
[sunx/mozilla-syncserver:latest] old: sha256:b76037b20c, pulled: sha256:b76037b20c, diff: False
[adferrand/backuppc:latest] old: sha256:b19e5318cf, pulled: sha256:b19e5318cf, diff: False
[combro2k/alpine-prosody:latest] old: sha256:ebd540cb2c, pulled: sha256:ebd540cb2c, diff: False
[mariadb:latest] old: sha256:629d7f88b0, pulled: sha256:629d7f88b0, diff: False
[robbertkl/roundcube:latest] old: sha256:05590c26ad, pulled: sha256:05590c26ad, diff: False

[summary]
ananas: nothing changed
luna: nothing changed
oignon: nothing changed