Registry¶
The Docker registry module.
- class confirm.tools.registry.RegistryCleaner(host, username, password, repos, dry_run)¶
- The Python class to clean up a Docker registry. - Parameters:
- host (str) – The Docker registry hostname 
- username (str) – The Docker registry username 
- password (str) – The Docker registry password 
- repos (None or list) – A list of repositories to clean up 
- dry_run (bool) – Do not delete anything 
 
 - authenticate(base, response)¶
- Authenticate on the Docker registry. - Parameters:
- base (DXF) – The base DXF object 
- response (HTTPResponse) – The HTTP response object 
 
 
 - 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 - registrywith the real container name.
 - init_dxf_instances(repos)¶
- Initialise the DXF instances. - Parameters:
- repos (None or list) – A list of repositories 
- Returns:
- The instances 
- Return type:
- generator