https://github.com/ucphhpc/docker-image-updater
Goapp that continuously checks and pulls DockerHub image updates
https://github.com/ucphhpc/docker-image-updater
Last synced: 4 days ago
JSON representation
Goapp that continuously checks and pulls DockerHub image updates
- Host: GitHub
- URL: https://github.com/ucphhpc/docker-image-updater
- Owner: ucphhpc
- License: mit
- Created: 2018-08-21T12:03:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2026-07-07T09:42:59.000Z (9 days ago)
- Last Synced: 2026-07-07T11:17:36.648Z (9 days ago)
- Language: Go
- Homepage:
- Size: 6.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
====================
docker-image-updater
====================
.. image:: https://img.shields.io/docker/v/ucphhpc/docker-image-updater
:target: https://hub.docker.com/r/ucphhpc/docker-image-updater
.. image:: https://img.shields.io/docker/image-size/ucphhpc/docker-image-updater
:target: https://hub.docker.com/r/ucphhpc/docker-image-updater
Docker image updater that continuously checks for updates for a given docker image,
has two options for execution:
- build and execute the binary native on the host itself.
- run as a container with the hosts docker socket mounted inside the container.
---------------
Getting Started
---------------
Either use docker to build an image, or build the binary and run it on the host.
Through go setup check the debian image for updates every 10 minutes (the default if left out)::
go build ./...
./docker-image-updater -update debian -interval 10
# If only updated images should be kept
./docker-image-updater -update debian -prune
# If updated untagged images should be pruned aswell
./docker-image-updater -update debian -prune -prune-untagged
# If in addition to images being updated other images should just be kept without being updated
./docker-image-updater -update debian -protect ubuntu -prune
# Docker can have a tendency to keep build cache around which can keep you from reclaiming disk space
# There the service also allows for you to clear this cache with the -remove-build-cache flag
./docker-image-updater -update debian -prune -remove-build-cache
Build as a docker image (defaults to use the :edge tag)::
make build
# override the build tag, e.g
make build TAG=latest
Which produces an image called ucphhpc/docker-image-updater:edge by default,
override the TAG variable in the makefile to change this. To run an updater container
that continuously checks for updates against the debian image every 10 minutes::
docker run --mount type=bind,src=/var/run/docker.sock,target=/var/run/docker.sock ucphhpc/docker-image-updater:edge -update debian