Files
computer-playbook/roles/sys-svc-docker/README.md
Kevin Veen-Birkenbach 5e550ce3a3 sys-ctl-rpr-docker-soft: switch to STRICT label mode and adapt tests
- script.py now resolves docker-compose project and working_dir strictly from container labels
- removed container-name fallback logic
- adjusted sys-ctl-hlth-docker-container to include sys-ctl-rpr-docker-soft
- cleaned up sys-svc-docker dependencies
- updated unit tests to mock docker inspect and os.path.isfile for STRICT mode

Conversation: https://chatgpt.com/share/68b80927-b800-800f-a909-0fe8d110fd0e
2025-09-03 11:24:14 +02:00

1.4 KiB

Docker Server

Description

This role installs and maintains the Docker service, including Docker Compose, on Linux systems.
It is part of the Infinito.Nexus Project, maintained and developed by Kevin Veen-Birkenbach.

Overview

The role ensures that Docker and Docker Compose are present, integrates essential backup, repair, and health check roles, and supports cleanup or full reset modes for a fresh Docker environment.
When enabled via MODE_CLEANUP or MODE_RESET, it will automatically prune unused Docker resources.
MODE_RESET additionally restarts the Docker service after cleanup.

Features

  • Automated Installation
    Installs Docker and Docker Compose via the system package manager.

  • Integrated Dependencies
    Includes backup, repair, and health check sub-roles

  • Cleanup & Reset Modes

    • MODE_CLEANUP: Removes unused Docker containers, networks, images, and volumes.
    • MODE_RESET: Performs cleanup and restarts the Docker service.
  • Handler Integration
    Restart handler ensures the Docker daemon is reloaded when necessary.

License

This role is released under the Infinito.Nexus NonCommercial License (CNCL).
See license details.

Author Information

Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world