Registry
The Docker registry module.
- class confirm.tools.registry.RegistryCleaner(*args, dry_run, **kwargs)
The Python class to clean up a Docker registry.
- Parameters
*args (list) – The positional arguments
dry_run (bool) – Do not delete anything
**kwargs (dict) – The keyword arguments
- cleanup_aliases()
Cleanup all old aliases.
Important
Garbage collection might need to be run manually. If the registry is running in a docker container, use the following command:
docker exec registry registry garbage-collect -m /etc/docker/registry/config.yml
Simply substitute the first
registry
with the real container name.