Nils Cant 714f2b1d3b Update
2025-11-02 15:29:45 +01:00
2025-11-02 15:29:45 +01:00
2025-11-02 15:29:45 +01:00
2019-08-20 13:45:22 +02:00
2019-08-20 13:45:02 +02:00

ansible-role-docker

This role installs docker-ce (Docker Community Edition) on a Debian system. (Tested on Stretch and Buster) It also exposes the Docker socket over TCP on port 2376, using X509 TLS certificates to enable / disable access.

Prerequisites

Ensure that the fqdn (hostname -f) of the host is resolvable through dns.

Example playbook

---
- hosts:
  - hostname
  roles:
  - role: docker

Copy TLS certificates

Copy /root/.docker/ to your local home directory.

Remotely connect to your docker host

echo 'export DOCKER_HOST=tcp://<hostname>:2376
export DOCKER_CERT_PATH=~/.docker/<hostname>
export DOCKER_TLS_VERIFY=1' > vars
source vars
docker info
Description
No description provided
Readme MIT 24 KiB
Languages
Jinja 100%