microsoft / microsoft/aspire

Should DCP fail fast / log warnings if Docker is in Windows container mode?

Open
#11,389 1 comment 0 reactions 0 assignees View on GitHub
area-orchestrator
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

If you try to run app host tests on a windows github agent, it has docker installed, but docker is is running in Windows Container mode, which will lead to errors when pulling ontainers.

### Describe the solution you'd like

Windows containers aren't supported, so Aspire should either fail fast outright, or at least log a warning if it detects docker is in Windows Container mode to make these failures easier to troubleshoot:

### Additional context

```
info: CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector.Tests.Resources.collector[0]
1: 2025-09-14T17:37:09.8870000Z Unable to find image 'ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:latest' locally
info: CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector.Tests.Resources.collector[0]
2: 2025-09-14T17:37:10.2510000Z latest: Pulling from open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib
info: CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector.Tests.Resources.collector[0]
3: 2025-09-14T17:37:10.2600000Z no matching manifest for windows/amd64 10.0.26100 in the manifest list entries
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
could not create the container {"Container": "/collector-ujzvsdhe", "Reconciliation": 3, "ContainerName": "collector-ujzvsdhe", "error": "docker command 'InspectContainers' returned with non-zero exit code 1\nobject not found\ncontainer not found\nError response from daemon: No such container: collector-ujzvsdhe\nnot all requested objects were returned\nonly 0 out of 1 containers were successfully inspected\ndocker command 'CreateContainer' returned with non-zero exit code 1"}
```
https://github.com/CommunityToolkit/Aspire/actions/runs/17714476558/job/50337504313?pr=853#step:6:159

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.