/periodic-docker-pull

Automatically pull a list of Docker images/tags on a regular basis

Primary LanguageShellGNU Lesser General Public License v3.0LGPL-3.0

periodic-docker-pull

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:

  1. Download the pre-built package from a Github Release.
  2. Extract it and put _periodic-docker-pull in a location of your choice.

Or, if you prefer to clone the repo:

  1. Clone the Git repository and run its make build target.
  2. Move out/_periodic-docker-pull-VERSION-all to a location of your choice; rename it as desired.

Then, schedule the program:

  1. Customize com.dzombak.periodic-docker-pull.sample.plist from this repository with the installation path you’ve chosen.
  2. Rename it as desired.
  3. 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:

  1. Install the program, following the same directions as for manual installation on macOS.
  2. Schedule it to run for your user as desired via cron.

About

License

LGPLv3; see LICENSE in this repository.