periodic-docker-pull
December 28, 2023 · View on GitHub
Automatically pull a list of Docker image/tags on a regular basis.
Configuration
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"
Installation
macOS via Homebrew
brew install cdzombak/oss/periodic-docker-pull
brew services start cdzombak/oss/periodic-docker-pull
macOS Manual Installation
Install the program:
- Download the pre-built package from a Github Release.
- Extract it and put
_periodic-docker-pullin a location of your choice.
Or, if you prefer to clone the repo:
- Clone the Git repository and run its
make buildtarget. - Move
out/_periodic-docker-pull-VERSION-allto a location of your choice; rename it as desired.
Then, schedule the program:
- Customize
com.dzombak.periodic-docker-pull.sample.plistfrom this repository with the installation path you’ve chosen. - Rename it as desired.
- Move it to
~/Library/LaunchAgents.
Linux
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.
About
License
LGPLv3; see LICENSE in this repository.