kayobe/ansible/roles/docker-registry
Mark Goddard 943a4cdb66 Fix upgrade of docker-registry and opensm containers
Previously the docker-registry container would not be upgraded when a new
image is downloaded. We now ensure that new images are tagged in the local
repository, and pull the image separately from the container upgrade.
2017-07-13 12:31:45 +01:00
..
defaults Fix upgrade of docker-registry and opensm containers 2017-07-13 12:31:45 +01:00
tasks Fix upgrade of docker-registry and opensm containers 2017-07-13 12:31:45 +01:00
README.md Add configuration to deploy a Docker registry on a controller 2017-06-27 18:49:10 +01: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
  • docker-py >= 1.7.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.

Dependencies

None

Example Playbook

The following playbook configures a Docker registry.

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

Author Information