This bash script will automatically update all of your docker images.
It will also report which obsolete images cannot be removed because they have dependent child images, and what those children are.
I recommend placing this in /usr/sbin:
wget https://raw.githubusercontent.com/phpexpertsinc/DockerUpgrader/v1.0/docker-images-update
chmod 0750 docker-images-update
sudo chown root:docker docker-images-update
sudo cp docker-images-update /usr/sbin
Also, consider adding it to your daily scheduled tasks:
sudo cp docker-images-update /etc/cron.daily
docker-images-update
✔ Keeps your third-party docker images up-to-date.
✔ Far less security worries when base images are updated.
✔ Points out which docker images could not be updated and are obsoleted.
Theodore R. Smith theodore@phpexperts.pro
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.
MIT license. Please see the license file for more information.