Manage Docker test database containers (status, up, down)
Parse $ARGUMENTS:
status (default), up, or down--profile: Container profile (default: all). Available: all, sqlserver, postgresql, mariadb, mysqlRun:
docker ps --filter "name=rm_db_" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
Categorize the result:
/docker up to start them."Run the PowerShell start script from Testing/Docker/:
cd Testing/Docker && pwsh ./RunDocker.default.<profile>.ps1
Where <profile> is the parsed profile argument (default: all).
The script handles: prerequisite checks, Docker image builds, container startup, and readiness waiting.
After the script completes, run status to show the final state.
Always display this warning:
Note: SQL Server may need up to 30 seconds after container start before it accepts connections, even though it appears healthy.
Run:
docker compose -f Testing/Docker/docker-compose.yml --env-file Testing/Docker/default.env --profile all down
After completion, run status to confirm all containers are stopped.