docker-service

Example:

# Install docker, adding the 'freckles' user to the 'docker' group.
- docker-service:
    users:
    - freckles

Description

Installs Docker on a Linux machine.

If the users variable is set, those users will be created if they don't exist yet. Do this seperately if you need to have more control about user creation (e.g. to provide password, ssh-pub-keys, etc.)

Windows and Mac OS X are not supported just yet.

Resources

Variables

Name Type Default Description

enabled

boolean True

Whether to enable the docker service or not.

started

boolean True

Whether to start the docker service or not.

users

list --

A list of users who will be added to the 'docker' group.

Examples

Example 1

Install docker, adding the 'freckles' user to the 'docker' group.

Code
- docker-service:
    users:
    - freckles

Command-line

frecklecute docker-service --help

Usage: frecklecute docker-service [OPTIONS]

  Installs Docker on a Linux machine.

  If the ``users`` variable is set, those users will be created if they
  don't exist yet. Do this seperately if you need to have more control about
  user creation (e.g. to provide password, ssh-pub-keys, etc.)

  Windows and Mac OS X are not supported just yet.

Options:
  --enabled / --no-enabled  Whether to enable the docker service or not.
  --started / --no-started  Whether to start the docker service or not.
  -u, --user USER           A list of users who will be added to the 'docker'
                            group.
  --help                    Show this message and exit.