Get information from Docker Registry (v2).
Version added: 0.4.0
- Get information from Docker Registry (v2).
- https://docs.docker.com/registry/spec/api/
The below requirements are needed on the host that executes this module.
- requests
- name: connection test
community.missing_collection.docker_registry_info:
scheme: 'http'
host: 'localhost'
port: 5000
- name: get all docker repositories
community.missing_collection.docker_registry_info:
scheme: 'http'
host: 'localhost'
port: 5000
list_repos: true
register: '__'
- name: get all docker repository tags
community.missing_collection.docker_registry_info:
list_tags: true
repo_name: '{{ __.result.repositories[0] }}'
- name: get image tag manifest
community.missing_collection.docker_registry_info:
get_manifest: true
repo_name: '{{ __.result.repositories[0] }}'
tag_name: '{{ tags.result.tags[0] }}'
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
result
dictionary
|
when success. |
result of docker registry api.
Sample:
{'repositories': ['test-timedb']}
|
- Davinder Pal (@116davinder) <dpsangwal@gmail.com>