On Windows, use the .uild.ps1 PowerShell script to manage builds and tests.
Building
Run .uild.ps1 to build images corresponding to the "windows" target in docker-bake.hcl.
Note: The script generates a build-windows_<AGENT_TYPE>_<WINDOWS_FLAVOR>_<WINDOWS_VERSION>.yaml docker-compose file on its first run. You can modify this file directly and rerun the script, or use .uild.ps1 -OverwriteDockerComposeFile to regenerate it from the bake file.
Testing
- Run all tests:
.uild.ps1 test - Debug tests (shows commands and stderr):
.uild.ps1 test -TestsDebug 'debug' - Verbose tests (shows stdout):
.uild.ps1 test -TestsDebug 'verbose' - Dry run (prints commands without executing):
.uild.ps1 test -DryRun
Filtering builds/tests
You can limit the scope using these parameters:
-ImageType: Specify Windows flavors (nanoserver, windowsservercore) and versions (ltsc2022, ltsc2025). Example: .uild.ps1 -ImageType 'nanoserver-ltsc2022'-AgentType: Specify agent or inbound-agent. Example: .uild.ps1 -AgentType 'agent'
# Example: Build only nanoserver ltsc2022 images
.\make.ps1 -ImageType 'nanoserver-ltsc2022'