A Python REST client for the Docker Registry
It's useful for automating image tagging and untagging
The API provides several classes: DockerRegistryClient
, Repository
, and Image
.
DockerRegistryClient
has the following methods:
namespaces()
-> a list of all namespaces in the registryrepository(repository_name, namespace)
-> the corresponding repository objectrepositories()
-> all repositories in the registry
Repository
has the following methods:
tags()
-> a list of all tags in the repositorydata(tag)
-> json data associated withtag
image(tag)
-> the image associated withtag
untag(tag)
-> removetag
from the repositorytag(tag, image_id)
-> applytag
toimage_id
Image
has the following methods:
get_layer()
-> binary layer data for imageget_json()
-> json metadata for imageget_data(field)
-> single field from json dataancestry()
-> ids for image ancestors
- python-dxf (only supports V2)