https://github.com/yeasy/docker_registry_api
Highlevel wrapper of the Docker registry's APIs
https://github.com/yeasy/docker_registry_api
Last synced: 4 months ago
JSON representation
Highlevel wrapper of the Docker registry's APIs
- Host: GitHub
- URL: https://github.com/yeasy/docker_registry_api
- Owner: yeasy
- Created: 2014-09-30T06:07:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-30T06:26:05.000Z (over 10 years ago)
- Last Synced: 2025-01-03T12:22:40.866Z (5 months ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker Registry APIs
===================Highlevel wrapper of the Docker registry's APIs
## Usage
### Download the code from Github
```
git clone https://github.com/yeasy/docker_registry_api.git
```### Import and use the lib
```
from docker_registry_api import DockerRegistryAPIapi = DockerRegistryAPI('192.168.56.101')
```## Functions
### get_repositories()
return: List of all repositories with name and description, e.g.,
`[{"description": "", "name": "training/webapp"},...]`
### get_images_of_repo(repo):
:param repo: The name of the checked repository.return: Dict of the images in the repository, e.g.,
`{"10.04": "3db9c44f45209632d6050b35958829c3a2aa256d81b9a7be45b362ff85c54710
",...}`