ambitious-dusk-59039
11/17/2022, 7:02 PMwide-mechanic-33041
11/17/2022, 7:18 PMambitious-dusk-59039
11/21/2022, 8:02 AMwide-mechanic-33041
11/21/2022, 12:24 PMminiature-advantage-69986
11/21/2022, 4:38 PMsetx HTTP_PROXY <http://user:password@your_proxy_server:3128>
setx HTTPS_PROXY <https://user:password@your_ssl_proxy_server:3128>
rem see: <https://github.com/MicrosoftDocs/WSL/issues/244>
rem the separator of variables to share is ":"
setx WSLENV HTTP_PROXY:HTTPS_PROXY
After setting these variables you will have to restart Rancher-Desktop, after that you can check if the variables have been propagated by WSL by entering the following command in windows:
wsl -d rancher-desktop echo ${HTTP_PROXY}
wsl -d rancher-desktop echo ${HTTPS_PROXY}
wide-mechanic-33041
11/21/2022, 4:39 PM