Refactor Docker VM script and modularize header

Refactored vm/docker-vm.sh for improved modularity, maintainability, and clarity. Moved ASCII header to a new vm/headers/docker-vm file, streamlined variable and function organization, and enhanced script structure for Docker VM creation with optional Portainer support. Improved error handling, storage selection, and image customization logic.
This commit is contained in:
CanbiZ 2025-12-05 09:56:22 +01:00
parent 862f9bdb7e
commit fa9e9fe4fe
2 changed files with 277 additions and 484 deletions

File diff suppressed because it is too large Load Diff

6
vm/headers/docker-vm Normal file
View File

@ -0,0 +1,6 @@
____ __ _ ____ ___
/ __ \____ _____/ /_____ _____ | | / / |/ /
/ / / / __ \/ ___/ //_/ _ \/ ___/ | | / / /|_/ /
/ /_/ / /_/ / /__/ ,< / __/ / | |/ / / / /
/_____/\____/\___/_/|_|\___/_/ |___/_/ /_/