This is a tool that helps you keeping your Docker images and containers up-to-date. It basically consists of three files:
/etc/cron.daily/docker-updateris the main script. Placed in/etc/cron.dailyit will regularly check for updates of your images./etc/default/docker-updaterconfigures the update tool. The/etc/cron.daily/docker-updaterwill use this as a setup. At least you need to set theENABLEDvariable to1, otherwise the update tool won't run./etc/docker-compose-auto-update.conflists Docker Compose environments. Add the paths to thedocker-compose.ymlfiles on your system, one per line. It will be read by the/etc/cron.daily/docker-updaterscript and containers will be updated automatically.
You'll find more information on the Docker Auto-Update tool in my blog.
To install the Docker Auto-Update tool, you may clone the repository at GitHub. Then,
- move the
./etc/cron.daily/docker-updaterscript to/etc/cron.daily/docker-updater - move the
./etc/default/docker-updaterconfig file to/etc/default/docker-updater - update the setup in
/etc/default/docker-updater-- at least setENABLED=1 - create a list of Docker Compose config files in
/etc/docker-compose-auto-update.conf- one path to adocker-compose.ymlper line.
If you're running a Debian-based system, you may instead use my apt-repository to install the Docker-Tools. In that case you just need to run
aptitude install bf-docker-tools
Afterwards, configure /etc/default/docker-updater and at least set ENABLED=1.
This way, you'll always stay up-to-date with bug fixes and new features :)
Docker-Tools - a suite of tools for easier dockering
Copyright (C) 2016-2017 Martin Scharm <https://binfalse.de/contact/>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
