mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00:00 
			
		
		
		
	- 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
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# 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](https://s.infinito.nexus/code), maintained and developed by [Kevin Veen-Birkenbach](https://www.veen.world/).
 | 
						|
 | 
						|
## 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](https://s.infinito.nexus/license).
 | 
						|
 | 
						|
## Author Information
 | 
						|
 | 
						|
Kevin Veen-Birkenbach  
 | 
						|
Consulting & Coaching Solutions  
 | 
						|
[https://www.veen.world](https://www.veen.world)
 |