Skip to content

yodle/docker-registry-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8abf6b0 · Jul 5, 2017

History

99 Commits
Apr 18, 2017
Jan 11, 2017
Jan 10, 2017
Jan 10, 2017
Jun 14, 2017
Mar 14, 2017
Feb 10, 2015
Jan 10, 2017
Jun 19, 2017
Aug 26, 2016
Jan 12, 2017
Jan 12, 2017
Jan 10, 2017

Repository files navigation

Docker Registry Client

Build status Latest version released on PyPI

A Python REST client for the Docker Registry

It's useful for automating image tagging and untagging

Usage

The API provides several classes: DockerRegistryClient, Repository, and Image.

DockerRegistryClient has the following methods:

  • namespaces() -> a list of all namespaces in the registry
  • repository(repository_name, namespace) -> the corresponding repository object
  • repositories() -> all repositories in the registry

Repository has the following methods:

  • tags() -> a list of all tags in the repository
  • data(tag) -> json data associated with tag
  • image(tag) -> the image associated with tag
  • untag(tag) -> remove tag from the repository
  • tag(tag, image_id) -> apply tag to image_id

Image has the following methods:

  • get_layer() -> binary layer data for image
  • get_json() -> json metadata for image
  • get_data(field) -> single field from json data
  • ancestry() -> ids for image ancestors

Alternatives

About

A Python REST client for the Docker Registry

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages