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 8bb4f507bb
HAHA
11 months ago
.gitignore Shitty thing is better, add stuff, mail sending, blah 11 months ago
README.md Shitty thing is better, add stuff, mail sending, blah 11 months ago
cfg.sample.py Shitty thing is better, add stuff, mail sending, blah 11 months ago
docker-update-checker.py Shitty thing is better, add stuff, mail sending, blah 11 months ago
requirements.txt Shitty thing is better, add stuff, mail sending, blah 11 months ago
setup.py lol yes 11 months ago

README.md

sdocker-update-checker

What

  1. cp cfg.py.sample cfg.py
  2. edit cfg.py and change things
  3. Put in cron
  4. Profit
  5. 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