2
0
Fork 0
mirror of https://github.com/luzifer-docker/reg-clean.git synced 2024-12-30 10:01:17 +00:00
Cleanup S3 based Docker registry v2
Find a file
2018-01-04 21:37:58 +01:00
.gitignore Initial version 2018-01-04 21:13:54 +01:00
Dockerfile Initial version 2018-01-04 21:13:54 +01:00
History.md prepare release v0.1.0 2018-01-04 21:37:58 +01:00
LICENSE Initial version 2018-01-04 21:13:54 +01:00
README.md Update image location 2018-01-04 21:37:46 +01:00
regclean.sh Initial version 2018-01-04 21:13:54 +01:00

Luzifer / reg-clean

Cleanup S3 based Docker registry v2:

  • Delete all non-tagged manifests
  • Garbage-collection can remove the blobs

Usage

## Build container (optional)
$ docker build -t quay.io/luzifer/reg-clean .

## Define AWS credentials
$ cat env
AWS_ACCESS_KEY_ID=myaccesskey
AWS_SECRET_ACCESS_KEY=mysecretaccesskey
AWS_DEFAULT_REGION=eu-west-1

AUTH=registryuser:pass
BUCKET=io.luzifer.docker-registry
REGISTRY=https://registry.luzifer.io

## Execute script
$ docker run --rm -ti --env-file=env quay.io/luzifer/reg-clean