feat: Implement Docker Manager CLI for managing Docker containers

This commit is contained in:
Peter Wood
2025-12-07 12:46:34 -05:00
parent ddf83a6564
commit 23ab917542
3 changed files with 376 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Create a Python command-line application in the `~/shell/docker-manager/` directory to manage Docker containers defined in subdirectories of `~/docker/`. Each subdirectory contains either a `docker-compose.yml` or `compose.yml` file. The application must:
- List the names of currently running containers defined in `~/docker/`.
- Provide commands to stop, update (pull latest images), and restart these containers.
- Be executable from any directory via the command line, without requiring navigation to the script's location.
- Output results and status messages to the console.
- Include setup instructions for installation and usage.
Provide complete Python code and a `README.md` with setup and usage instructions. Use only files within `~/shell/docker-manager/` to avoid cluttering other directories. Reference the [Docker Compose CLI documentation](https://docs.docker.com/compose/reference/) for command usage.