Questions tagged [wsl-2]

This tag should be used for question about Windows Subsystem for Linux version 2. It should not be used for WSL version 1.

From the Microsoft docs:

WSL 2 is a new version of the architecture in WSL that changes how Linux distros interact with Windows. WSL 2 has the primary goals of increasing file system performance and adding full system call compatibility. Each Linux distro can run as a WSL 1, or a WSL 2 distro and can be switched between at any time. WSL 2 is a major overhaul of the underlying architecture and uses virtualization technology and a Linux kernel to enable its new features.

WSL provides a way to run linux binaries under Windows 10.

WSL 2 is stored in a single file and has it's own IP address while WSL 1 is stored in multiple files and shares an IP address with the host.

WSL 2 can access files in it's own directory structure faster than WSL 1 but it is slower with Windows files.

The guide for installing WSL2 can be found here.

1587 questions
0
votes
1 answer

Docker container returns an error with selenium webdriver

I've been struggling on this issue for a while now. I am trying to build a Docker container that scrape some data with selenium Webdriver and I got an error saying the driver is no callable. Check: > [stage-1 6/6] RUN python db_starter.py: #10…
0
votes
1 answer

x11 forwarding from WSL2 to remote machine

I am trying to use x11 apps on my Mac from WSL2, but whenever I ssh into the machine I get this warning: X11 forwarding request failed on channel 0 And echo $DISPLAY returns blank. In the server I've tried editing the X11 options in sshd_config…
Specimen
  • 131
  • 1
  • 8
0
votes
1 answer

How can I prevent React and Plotly crashing the development server due to JavaScript heap out of memory?

I am trying to build a create-react-app with react-plotly.js but when the plot components are included the compiler hangs and eventually fails displaying the error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory I…
0
votes
0 answers

VSCode cannot access Docker image inside wsl2 image

I am running a cuda enabled docker container inside wsl2 and when i try to use VSCode to run scripts inside it i cannot connect to it. The message in the docker plugin window is: Error: connect EACCESS /var/run/docker.sock I added the default user…
Chris
  • 570
  • 2
  • 9
  • 19
0
votes
2 answers

Since upgrading from Mongo 4.2 to 4.4 (now 4.4.1) cannot connect from Node in WSL via Mongoose

Mongoose 5.10.10 - Windows 10+WSL2 - Mongo 4.4.1 Worked fine before the MongoDB upgrade. I dynamically acquire Windows IP in Ubuntu on WSL and connect (or try to) on WIN_IP:27017. Connection fails with timout every time. I've tried many combinations…
Jerry Rubin
  • 87
  • 1
  • 12
0
votes
0 answers

Mongo Shell/Compass won't connect to mongodb container

I'm using Docker (running on WSL) and I have a MongoDB container running. Using mongo shell on my host I can connect to the instance, but I can't authenticate. I also get an authentication error when I try to go through MongoDB Compass, below is the…
MaddieX
  • 22
  • 3
0
votes
1 answer

Docker Volume Mapping: File is not getting copied from Docker linux container to local windows machine

I am trying to do volume mapping from linux container to my local windows machine. Here are the steps: Installed latest version of Docker desktop for windows (2.4.0.0) and it's currently using WSL2 based engine. Started a container using my own…
0
votes
1 answer

How execute with parameters python script in WLS2 from C# under Windows 10

I have big project with C# and WinForms on Windows 10. I want to run from this program python script with ML libraries. Unfortunately i have some problems with work ML in native on Windows and want use WLS2 with Linux environment. It's real? How I…
0
votes
1 answer

Why ping to a docker container returns "Request timed out"?

I have a setup that worked for me a long time in my local computer (docker for windows 10). Recently I started using kubernetes, and now I have connection issues to my docker containers. I can docker exec bash into them, but ping to the cotainer ip…
justadev
  • 1,168
  • 1
  • 17
  • 32
0
votes
1 answer

Setting a consistent display number for X2Go client

So I've recently started using Ubuntu on WSL2, and I'm trying to use X2Go as my X window system to run GUI apps. I start up the Ubuntu WSL, and run the SSH daemon. Then, I use the x2go client on Windows to connect to the X2Go server running on the…
0
votes
0 answers

lookup konnek-db on 127.0.0.11:53: no such host POSTGRES DOCKER WSL2 not connected error

i'm relatively new to windows development enviroment used to use ubuntu before and decided to use windows to try to get best of both world game and development, after follow and research i'm able to setup wsl2, docker and golang since it is my…
0
votes
1 answer

WSL2 Golang install tools: Permission denied

I am trying to install the golang tools in WSL2/Ubuntu in order to use them with VSCode. Every time I want to install them via VSCode I get the permission denied message: Tools environment: GOPATH=/go Installing 17 tools at /go/bin in module mode. …
Heikkisorsa
  • 740
  • 9
  • 31
0
votes
1 answer

Browser Does Not Update on Save with webpack-dev-server in Docker in WSL 2

I have looked at various solutions to no avail. Testing webpack-dev-server on WSL 2 works fine; when I update the src/main.js file the browser updates however when inside of a docker container again running within WSL 2, the browser does not…
succeed
  • 834
  • 1
  • 11
  • 28
0
votes
0 answers

Why table data is not passed to MySQL server

I was trying to login to a site (based on apache2 mysql-server php5-mysql php5 libapache2-mod-php5 ) from a local host . It was a docker project.When i start the container , i am able to access the login page,but I cannot access it with username and…
tensorMan
  • 17
  • 6
0
votes
1 answer

Uno Platform on WSL: Errors in unchanged template

I'm attempting to build the Uno project template with Linux support, using WSL (Ubuntu 20.04), following the official guide. Unfortunately, I always get an error running the Skia GTK project template: DllNotFoundException: Gtk: libgtk-3-0.dll,…
1 2 3
99
100