# geerlingguy/ansible-role-docker

Ansible Role - Docker

Repository: https://github.com/geerlingguy/ansible-role-docker
Canonical: https://ross.abutalabs.com/products/ansible-role-docker
Homepage: https://galaxy.ansible.com/geerlingguy/docker/
License: MIT
License Family: permissive
Topics: ansible, role, docker, containers, server, management, infrastructure, centos, redhat, ubuntu, debian
Last push: 2026-08-18T00:24:56+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 3477, "days_push": 16, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2288, forks 901 (observed 2026-08-28T04:06:34.734082+00:00)

## What it is
A widely-used Ansible role that installs and configures Docker (and optionally Docker Compose) on Linux servers. It supports multiple distributions, version pinning, service management, and cleanup of obsolete packages.

## Use cases
- install docker on ubuntu with ansible
- provision docker on centos servers
- pin a specific docker version via ansible
- install docker compose plugin on linux hosts
- remove old docker packages before installing
- manage docker service state with ansible

## When to choose
- you use Ansible and need repeatable Docker installation across Linux servers
- you need version pinning or edition selection (CE/EE)
- you want automatic cleanup of conflicting container packages

## When to avoid
- you don't use Ansible for configuration management
- you need to install Docker on Windows or macOS hosts
- you want a full container orchestration solution rather than Docker installation

## Facets
- artifact type: infra-config
- maturity: stable
- function: infrastructure-as-code, container-runtime, configuration-management, deployment
- domain: infrastructure-as-code
- platform: self-hosted, cloud
- tags: ansible-role, docker-installation, docker-compose, provisioning, geerlingguy, devops, containers, automation, linux, docker

## Member repositories
- geerlingguy/ansible-role-docker (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:34.734082+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:40:50.471700+00:00, confidence not recorded.
  - readme: https://github.com/geerlingguy/ansible-role-docker (fetched 2026-08-28T04:06:34.734082+00:00, sha e00fceebdd81)
  - homepage: https://galaxy.ansible.com/geerlingguy/docker/ (fetched 2026-08-29T10:21:24.428362+00:00, sha d611c676f7a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
