feat: Add winctl.sh management script and multi-version setup
Add winctl.sh with 12 commands for managing Windows Docker containers:
- start, stop, restart, status, logs, shell, stats
- build, rebuild, list, inspect, monitor, check
- Interactive menus, prerequisites checking, color output
- Support for 22 Windows versions across 4 categories
Multi-version compose structure:
- Split base.yml into base-modern.yml (8G) and base-legacy.yml (2G)
- Add .env.example for configuration
- Update all compose files to use env_file
- Add unique port mappings per version
- Update README with winctl.sh documentation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:14:45 +00:00
|
|
|
# Windows Docker VM Configuration
|
2026-01-28 23:44:10 +00:00
|
|
|
#
|
|
|
|
|
# Two env files are provided with optimized defaults:
|
|
|
|
|
# - .env.modern (8G RAM, 4 CPU) - Windows 10/11, Server 2016+
|
|
|
|
|
# - .env.legacy (2G RAM, 2 CPU) - Windows 7/8, Vista, XP, 2000, Server 2003-2012, Tiny
|
|
|
|
|
#
|
|
|
|
|
# Each compose file references the appropriate env file automatically.
|
|
|
|
|
# Edit .env.modern or .env.legacy to customize settings.
|
|
|
|
|
#
|
|
|
|
|
# Available settings:
|
|
|
|
|
#
|
|
|
|
|
# RAM_SIZE=8G # Memory allocation
|
|
|
|
|
# CPU_CORES=4 # CPU cores
|
|
|
|
|
# DISK_SIZE=128G # Virtual disk size
|
|
|
|
|
# USERNAME=Docker # Windows username
|
|
|
|
|
# PASSWORD=admin # Windows password
|
|
|
|
|
# LANGUAGE=en # Installation language
|
|
|
|
|
# REGION=en-US # Region setting
|
|
|
|
|
# KEYBOARD=en-US # Keyboard layout
|
|
|
|
|
# WIDTH=1280 # Display width
|
|
|
|
|
# HEIGHT=720 # Display height
|
|
|
|
|
# DHCP=N # Use DHCP (Y/N)
|
|
|
|
|
# SAMBA=Y # Enable file sharing (Y/N)
|
2026-01-29 00:46:11 +00:00
|
|
|
# RESTART_POLICY=on-failure # Restart policy (no, on-failure, always, unless-stopped)
|
2026-01-28 23:44:10 +00:00
|
|
|
# DEBUG=N # Debug mode (Y/N)
|
2026-01-29 07:24:03 +00:00
|
|
|
# WINDOWS_IMAGE=dockurr/windows # Docker image (dockurr/windows-arm for ARM64)
|
feat: Add auto-cache, fix cache restore, refactor help system
- Add AUTO_CACHE=Y/N setting in .env to auto-cache ISOs on stop
- Fix cache restore to copy metadata files (windows.base, windows.ver,
windows.mode, windows.type, windows.args) alongside ISOs so the
container recognizes them as already processed and skips re-download
- Refactor show_usage() into topic-based help with interactive menu
(commands, instances, cache, examples, config) and aligned columns
- Fix clean --data to unregister instances and remove compose files
- Update WINCTL_GUIDE.md and readme.md with all changes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 12:04:18 +00:00
|
|
|
#
|
|
|
|
|
# winctl.sh settings (place in .env file):
|
|
|
|
|
#
|
|
|
|
|
# AUTO_CACHE=N # Auto-cache ISOs on stop (Y/N)
|