troykinsella.docker

troykinsella.docker

Build Status

This is an Ansible role that sets up Docker following the instructions found here: https://docs.docker.com/install/linux/docker-ce/ubuntu/

Role Variables

Check defaults/main.yml for the default settings.

  • docker_repository_url: Optional. The URL of the apt repository where the Docker package is downloaded from.
  • docker_gpg_key_fingerprint: Optional. The GPG key fingerprint for the Docker apt repository.
  • docker_package_name: Optional. The name of the Docker apt package to be installed.
  • docker_systemd_service_d_path: Optional. The path to the systemd docker.service.d directory.
  • docker_systemd_startup_options_conf: Optional. The name of the configuration file to create in docker_systemd_service_d_path when docker_enable_remote_api is set to yes.
  • docker_enable_remote_api: Optional. A boolean setting to configure the Docker remote API.
  • docker_bind_port: Optional. The port where the Docker daemon should listen when docker_enable_remote_api is yes.
  • docker_group_members: Optional. A list of users to add to the docker group.

Example Playbook

- hosts: servers
  roles:
  - role: troykinsella.docker
    docker_enable_remote_api: yes

Platforms

Supported Ubuntu versions:

  • Trusty
  • Xenial
  • Bionic

Testing

Before testing, make sure you have the following:

  • docker
  • ruby version greater than 2.3
  • bundler

To run tests:

bundle install
bundle exec kitchen test

License

MIT © Troy Kinsella

Informazioni sul progetto

Docker allows you to package an application with all of its dependencies into a standardized unit for software development.

Installa
ansible-galaxy install troykinsella.docker
Licenza
mit
Download
1.4k
Proprietario
Staff Solutions Architect at @collectivei.