kayobe/ansible/roles/docker-registry
Will Szumski 27ece2622b Fix issue removing docker volumes
The error response from the docker daemon has changed to:

    Error response from daemon: get opensm_logs: no such volume

This change should support both old and new responses.

Change-Id: Ibef1713d7de2e0a2c6fe046f607b2a8e60dae3da
Closes-Bug: #2050092
2024-05-21 12:59:22 +02:00
..
defaults Make docker registry network mode configurable 2021-05-11 22:48:21 +02:00
handlers Docker registry TLS 2020-07-24 09:11:45 +01:00
tasks Fix issue removing docker volumes 2024-05-21 12:59:22 +02:00
README.md Make docker registry volume configurable 2020-02-19 10:16:00 +00:00

Docker Registry

This role can be used to configure a Docker registry running in a Docker container.

Requirements

The host executing the role has the following requirements:

  • Docker engine
  • Python docker >= 2.0.0

Role Variables

docker_registry_enabled: Whether the Docker registry is enabled. Defaults to true. docker_registry_namespace: Docker image namespace. Defaults to library. docker_registry_image: Docker image name. docker_registry_tag: Docker image tag. Defaults to latest. docker_registry_image_full: Full docker image specification. docker_registry_restart_policy: Docker restart policy for docker_registry container. Defaults to unless-stopped. docker_registry_restart_retries: Number of Docker restarts. Defaults to 10. docker_registry_datadir_volume: The name or path to use for the docker volume that backs the registry. Defaults to docker_registry.

Dependencies

None

Example Playbook

The following playbook configures a Docker registry.

---
- hosts: docker-registry
  roles:
    - role: stackhpc.docker-registry

Author Information