Ricardo Branco 9877df3622 Update README.md | před 6 roky | |
---|---|---|
Dockerfile | před 6 roky | |
LICENSE | před 6 roky | |
README.md | před 6 roky | |
clean_registry.py | před 6 roky |
Clean the Docker Registry by removing untagged repositories and running the garbage collector in Docker Registry >= 2.4.0
The optional -x
flag may be used to remove the specified repositories or tagged images.
NOTES:
pip3 install docker pyyaml
.clean_registry.py [OPTIONS] CONTAINER [REPOSITORY[:TAG]]...
Options:
-x, --remove Remove the specified images or repositories.
-q, --quiet Supress non-error messages.
-V, --version Show version and exit.
docker run --rm --volumes-from CONTAINER -v /var/run/docker.sock:/var/run/docker.sock ricardobranco/clean_registry [OPTIONS] CONTAINER [REPOSITORY[:TAG]]...