Windows Subsystem for Linux is a compatibility layer that allows Linux binaries to run natively on Windows 10.
Questions tagged [windows-subsystem-for-linux]
71 questions
2
votes
0 answers
WSL2 Dockerized Nginx not available in browser, but ping respond
I have a Windows 10 Home on my computer with WSL2. In WSL I run Docker with this docker-compose.yml file:
version: "3"
services:
httpd:
image: 'nginx:stable-alpine'
ports:
- '80:80'
volumes:
- ./:/var/www/html
-…
![](../../users/profiles/600332.webp)
netdjw
- 121
- 3
2
votes
3 answers
How to access service running on host from WSL2 (connection refused)
I have selenium running on my host machine, and my app is inside a docker container (inside WSL2).
I am trying to get the app connect to the selenium, that is listening on port 4445.
It used to work a few months ago, I think something changed in…
![](../../users/profiles/283391.webp)
justadev
- 303
- 1
- 4
- 14
2
votes
1 answer
cURL can connect to localhost but browser cannot
My system is Win10 with WSL2, I ran a gogs docker container (from ubuntu in WSL):
83b2a8833235 gogs/gogs "/app/gogs/docker/st…" 17 minutes ago Up 17 minutes 0.0.0.0:10022->22/tcp, :::10022->22/tcp,…
![](../../users/profiles/595161.webp)
Ken Tsoi
- 123
- 1
- 6
2
votes
0 answers
Enable bidirectional UDP communication between Windows host and Docker container
I have a UDP server on a Windows 10 host, on a fixed port (let's say 1234). All I want is to set up a communication between this server and a client in a Docker (Debian-based) container (Docker version 20.10.6). This is using WSL2.
Note that my UDP…
![](../../users/profiles/658315.webp)
timot.cool
- 21
- 2
2
votes
0 answers
WSL2 on Windows 10 - installed NVM, Node but can't install any package
I have WSL 2 on my Windows 10 (* Ubuntu-20.04 Running 2). I installed nvm and node on it.
nvm --version: 0.35.3
nvm ls:
-> v14.11.0
default -> node (-> v14.11.0)
node -> stable (-> v14.11.0) (default)
stable -> 14.11 (-> v14.11.0)…
![](../../users/profiles/526565.webp)
alvipeo
- 121
- 3
2
votes
2 answers
How to get Ubuntu in WSL 2 to talk to an HTTP server on same Windows host?
I am running a console app in Windows 10 which has a self-hosted HTTPS server listening on port 44340. It's an ASP.NET Core website (Kestrel) and its perfectly browsable on the Windows side.
I cannot reach this port from within a Windows Subsystem…
![](../../users/profiles/43326.webp)
Luke Puplett
- 939
- 2
- 16
- 24
1
vote
1 answer
Getting CUPS and printing working on Ubuntu with Windows Subsystem for Linux
I'm building a cross platform printing app and need to test it on various Linux. I could use VMs but I've got WSL just sitting here working and it will be a lot more convenient, at least initially just to use it.
I have installed CUPS but it won't…
![](../../users/profiles/80744.webp)
tig
- 113
- 1
- 5
1
vote
1 answer
any way to integrate authentication with subsystem for linux?
Looking at windows docs and trying to script this:
Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile distro.zip -UseBasicParsing
Expand-Archive distro.zip debian
cd distro
.\debian.exe (edited)
After I run debian.exe I have to…
![](../../users/profiles/152514.webp)
red888
- 4,069
- 16
- 58
- 104
1
vote
0 answers
Postgres running in WSL all of a sudden drops network and gives "Connection refused"
We have two laptops in the team experiencing the same kind if issues, but they behave a bit differently so I'll take it from the point of view of mine...
Both laptops runs updated Windows 11 with Ubuntu 20.04 in WSL2.
After a reboot everything works…
![](../../users/profiles/528909.webp)
Anders
- 111
- 3
1
vote
1 answer
How to run two different applications simultaneously in same port with same Machine in Ubuntu
I want to run two different applications (i.e:Two different Microservices) running in same port(eg:in port 3000).I have implemented concepts like creating multiple distro's in ubuntu.But simultaneously that was not working with same ports.Adding to…
![](../../users/profiles/980185.webp)
CodeBox
- 11
- 1
1
vote
0 answers
How do I set environment variables so that they execute when calling WSL from PowerShell?
First let me clarify the question. I'm not asking how to sync environment variables. What I am asking is how to set JAVA_HOME so that when I call wsl echo `$JAVA_HOME from powershell it writes out the specified bash environment variable.
So far,…
![](../../users/profiles/117016.webp)
Jason Thompson
- 403
- 2
- 6
- 15
1
vote
1 answer
WSL-Docker: curl: (60) unable to get local issuer certificate
After a PC reconfiguration I am unable to use Docker properly, since some curl commands are rejected due to SSL/TLS issues.
In just one example curl -vfsSL https://apt.releases.hashicorp.com/gpg returns the following error:
* Trying…
![](../../users/profiles/207195.webp)
casparjespersen
- 113
- 1
- 7
1
vote
0 answers
Nginx -- Can't use mDNS domain name in upstream server
Minimal example
Machine A and B, where B uses mDNS with domain name b.local and set ssh service at port 2222. A and B does not turn on firewall.
In machine A's nginx.conf:
stream {
upstream b-ssh {
server b.local:2222;
}
server…
![](../../users/profiles/964281.webp)
Evian
- 111
- 1
1
vote
0 answers
github not accepting private SSH Key
I have a Private ED25519 SSH key, on a Windows system (using WSL). Permissions of the private key are 400 and permissions on the Public Key are 444. When I test my connection, using ssh -Tvvv git@github.com this is the response I get.
debug1:…
![](../../users/profiles/407119.webp)
Reuben deVries
- 141
- 5
1
vote
0 answers
How to give each WSL distro a distinct IP address?
How to give each WSL distro a distinct IP address, and then connect to those IP addresses via Windows?
I was curious if its possible to setup two different ubuntu distributions using WSL and somehow assign a unique IP address to each one of them,…
![](../../users/profiles/558790.webp)
pico
- 111
- 3