From b81cfed5947e71524057d3cafc3fa9e08b353acc Mon Sep 17 00:00:00 2001 From: "aspire-repo-bot[bot]" <268009190+aspire-repo-bot[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2026 19:29:48 +0000 Subject: [PATCH] docs: recognize WSLc in aspire doctor container runtime checks Document WSLc as a supported Windows-only container runtime alongside Docker and Podman, matching microsoft/aspire#21004: - aspire-doctor.mdx: describe WSLc auto-detection/selection, update stale sample output (the old auto-detected/explicit-configuration reason text was removed from the CLI), add WSLc examples including the minimum-version failure case. - prerequisites.mdx: add a WSLc callout next to the container runtime choices. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../docs/get-started/prerequisites.mdx | 9 +++ .../reference/cli/commands/aspire-doctor.mdx | 62 ++++++++++++++++--- 2 files changed, 62 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/content/docs/get-started/prerequisites.mdx b/src/frontend/src/content/docs/get-started/prerequisites.mdx index eec49d9043..21bcbd8b48 100644 --- a/src/frontend/src/content/docs/get-started/prerequisites.mdx +++ b/src/frontend/src/content/docs/get-started/prerequisites.mdx @@ -100,6 +100,15 @@ Ready to dive into Aspire? Before you begin, make sure your development environm Install one option from the tabs above. For most users, choose **Docker Desktop**; don't install Podman or Rancher Desktop unless you specifically want to use one of them instead. ::: + :::note[WSLc on Windows] + On Windows, Aspire also recognizes [WSLc](https://aka.ms/aspire/containers) (version 3.0.2.0 or + later) as a container runtime for local development, alongside Docker and Podman. `aspire doctor` + auto-detects installed runtimes in Docker, Podman, WSLc priority order, or set + `ASPIRE_CONTAINER_RUNTIME=wslc` to select it explicitly. WSLc isn't supported when Aspire runs + inside a Linux WSL distribution, and publish/deploy support isn't available yet — WSLc is + currently local-development only. + ::: + 1. ## Install an integrated development environment (IDE) Aspire supports multiple IDEs and code editors. You can choose the one that best fits your workflow: diff --git a/src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx b/src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx index 85138b939d..8ec8b408d3 100644 --- a/src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx +++ b/src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx @@ -32,7 +32,7 @@ This command is useful for troubleshooting when you encounter issues with Aspire - **Aspire checks**: Reports the current Aspire CLI version and whether a newer CLI version is available, and suggests running `aspire update` when a newer one is available - **AppHost checks**: Reports the AppHost Aspire SDK version when an AppHost project is present in the current directory - **SDK checks**: Reports .NET SDK availability and version -- **Container checks**: Validates container runtime (Docker and/or Podman) availability, running status, and version. Reports which runtime is active and why (explicit configuration, auto-detected default, or auto-detected only runtime running) +- **Container checks**: Validates container runtime availability, running status, and version. On Windows, this includes WSLc in addition to Docker and Podman; on other platforms only Docker and Podman are checked. Marks the active runtime `← active`, or `← explicitly selected` when chosen via `ASPIRE_CONTAINER_RUNTIME` - **Environment checks**: Reports operating system information (type, version, and Linux distro details when available) and validates environment variables and other settings, including the JavaScript toolchain required by TypeScript AppHosts (npm, pnpm, Yarn, or Bun) - **Development tools checks**: When VS Code is detected, reports whether the [Aspire VS Code extension](https://aka.ms/aspire/vscode-extension) is installed @@ -74,6 +74,19 @@ This command is useful for troubleshooting when you encounter issues with Aspire the `aspire doctor` result includes a warning. + + The command displays results with clear status indicators: - ✅ (green) - Check passed @@ -136,7 +149,7 @@ AppHost ✅ .NET 10.0.203 installed (arm64) Container Runtime - ✅ Docker v28.5.1: running (auto-detected (default)) ← active + ✅ Docker v28.5.1: running ← active Environment ✅ Operating system: macOS 15.5.0 @@ -192,21 +205,52 @@ When only Podman is running: ```bash title="Aspire CLI" Container Runtime - ✅ Podman v5.3.0: running (auto-detected (only runtime running)) ← active + ✅ Podman v5.3.0: running ← active ❌ Docker is not installed ``` -When you set `ASPIRE_CONTAINER_RUNTIME=podman`, Aspire honors the explicit -configuration and Podman becomes active even when Docker is also running: +When you set `ASPIRE_CONTAINER_RUNTIME=podman`, only Podman is checked and it's +marked explicitly selected, even when Docker is also installed and running: + +```bash title="Aspire CLI" +Container Runtime + ✅ Podman v5.3.0: running ← explicitly selected +``` + +The active runtime is annotated with `← active`; a runtime chosen via +`ASPIRE_CONTAINER_RUNTIME` is annotated with `← explicitly selected` instead, +and only that runtime is checked. + +On Windows, when multiple runtimes are installed, `aspire doctor` reports all of +them in Docker, Podman, WSLc priority order and marks the active one `← active`: + +```bash title="Aspire CLI" +Container Runtime + ✅ Docker v29.8.2: running ← active + ⚠️ Podman: installed but not running + ✅ WSLc v3.0.3.0: running +``` + +When you set `ASPIRE_CONTAINER_RUNTIME=wslc`, Aspire checks only WSLc and marks +it `← explicitly selected`: + +```bash title="Aspire CLI" +Container Runtime + ✅ WSLc v3.0.3.0: running ← explicitly selected +``` + +If the selected WSLc client or session manager is older than the minimum +supported version, `aspire doctor` reports a blocking failure instead of a +warning: ```bash title="Aspire CLI" Container Runtime - ✅ Podman v5.3.0: running (explicit configuration) ← active - ✅ Docker v27.3.1: running (available) + ❌ WSLc client version 3.0.1.0 is below minimum required 3.0.2.0 ← explicitly selected + Upgrade WSLc to version 3.0.2.0 or later. See: https://aka.ms/aspire/containers ``` -The active runtime is annotated with `← active`. Other detected runtimes are -shown with `(available)`. +WSLc is only recognized on Windows; setting `ASPIRE_CONTAINER_RUNTIME=wslc` on +macOS or Linux reports a blocking failure recommending Docker or Podman instead. When VS Code is detected but the Aspire extension isn't installed, the Development tools section reports a warning: