Deploy a docker registry.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lyz d8b0f35516 Merge branch 'feature/updating-stack' of ansible-roles/docker-registry into master 7 months ago
defaults Modify docker command to pass lint 8 months ago
files * Added molecule tests with vagrant 1 year ago
meta New format of meta/main.yml file 8 months ago
molecule/default Changing requirements to pointing to docker v1.2.0 role 8 months ago
tasks * Added functional test 1 year ago
templates * Use docker_command 1 year ago
vars First iteration 1 year ago
.gitignore * Added molecule tests with vagrant 1 year ago
.yamllint * Added molecule tests with vagrant 1 year ago Adding CHANGELOG 8 months ago
LICENSE Initial commit 1 year ago Updating README to replace docker-py by docker pip package 8 months ago

Docker Registry

Download the docker registry image, deploy it and create a systemd service.


To run this role you must have installed:

  • Docker, we suggest to use this role
  • docker pip package

Role Variables

  • docker_main_dir: A directory where you’ll save all docker related configurations and data.
  • docker_command: Docker command used to launch the container. [Default: /usr/bin/docker run -i --name {{ registry_service_name }} -p --rm -v {{ registry_data }}:/var/lib/registry -v {{ registry_config }}/:/etc/docker/registry registry:2]
  • registry_data: Directory to store the registry data. [Default: {{ docker_main_dir }}/registry/data]
  • registry_auth: Directory to store the authentication data. [Default: {{ docker_main_dir }}/registry/auth]
  • registry_config: Directory to store the registry configuration. [Default: {{ docker_main_dir }}/registry/config]
  • registry_service_name: Docker service name. [Default: docker-registry]



Example Playbook

- hosts: servers
    docker_main_dir: /root/docker/
    - { role: docker-registry}


To test the role you need molecule.

And vagrant installed with libvirt

molecule test



Author Information

drymer [ EN ] lyz [ EN ]