Automatically pull a list of Docker image/tags on a regular basis.
Place a list of Docker images/tags at ~/.config/periodic-docker-pull.txt
. Sample content:
catthehacker/ubuntu:full-latest
catthehacker/ubuntu:act-latest
periodic-docker-pull v1.1.0 and later automatically run docker image prune
after pulling. To disable automatic pruning, run:
touch "$HOME/.config/periodic-docker-pull-no-prune"
brew install cdzombak/oss/periodic-docker-pull
brew services start cdzombak/oss/periodic-docker-pull
Install the program:
- Download the pre-built package from a Github Release.
- Extract it and put
_periodic-docker-pull
in a location of your choice.
Or, if you prefer to clone the repo:
- Clone the Git repository and run its
make build
target. - Move
out/_periodic-docker-pull-VERSION-all
to a location of your choice; rename it as desired.
Then, schedule the program:
- Customize
com.dzombak.periodic-docker-pull.sample.plist
from this repository with the installation path you’ve chosen. - Rename it as desired.
- Move it to
~/Library/LaunchAgents
.
I only use this program on macOS currently, so I don’t provide .deb
packages or support for installation on Linux. However, the program should work fine on Linux:
- Install the program, following the same directions as for manual installation on macOS.
- Schedule it to run for your user as desired via
cron
.
LGPLv3; see LICENSE
in this repository.