WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSLC settings.yaml broken link https://aka.ms/wslc-settings

Open bahrep opened this issue 5 months ago • 5 comments

  1. Run wslc settings
  2. There is a link to https://aka.ms/wslc-settings on the second line of the file. The link opens bing.com.

I was looking for the HTTP_PROXY settings for wslc, but the link to the doc seems to be broken.

Image

wslc --version wslc 2.9.3.0 WSL version: 2.9.3.0

bahrep avatar Jul 02 '26 11:07 bahrep

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

Once completed please upload the output files to this GitHub issue.

See Collect WSL logs (recommended method).

If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

github-actions[bot] avatar Jul 02 '26 11:07 github-actions[bot]

Logs are required for review from WSL team

No, you don't need logs to respond to such requests or fix broken links.

bahrep avatar Jul 02 '26 11:07 bahrep

The broken link is real — https://aka.ms/wslc-settings currently redirects to Bing, so wslc settings gives no usable documentation. That's worth fixing regardless.

On the actual question behind it (HTTP_PROXY for wslc): as of wslc 2.9.4.0 there is no documented proxy setting in settings.yaml. The related feature requests are #40945 and #40981 (pull behind PAC/corporate proxies fails because HTTPS_PROXY is left empty). So today the practical workaround is to set proxy env vars in the invoking shell before wslc pull:

$env:HTTPS_PROXY = "http://proxy.corp:8080"
$env:HTTP_PROXY  = "http://proxy.corp:8080"
$env:NO_PROXY    = "localhost,127.0.0.1"
wslc pull alpine

The most common failure mode is that a PAC/Zscaler setup populates http_proxy but leaves HTTPS_PROXY empty, so HTTPS registry pulls bypass the proxy and time out. Setting HTTPS_PROXY explicitly is what clears it.

(I keep a write-up of the proxy workarounds and the status of the mirror/proxy feature requests at https://wslcontainers.com/guides/registry-proxy/ — happy to update it if/when Microsoft lands a settings.yaml option.)

ylwl1997 avatar Aug 03 '26 01:08 ylwl1997

Be good to get this fixed as now that WSLc has hit GA anyone who opens the settings file (e.g. via wslc settings) now sees this broken URL right at the top of the default settings.yaml:

# wslc user settings
# https://aka.ms/wslc-settings
# All settings support string value "default" which uses built-in defaults.

ralish avatar Oct 01 '26 01:10 ralish

This is now fixed! https://github.com/MicrosoftDocs/WSL/pull/2641

craigloewen-msft avatar Oct 16 '26 17:10 craigloewen-msft