- check version WSL
wsl --version
- Update WSL to
v0.67.6
wsl.exe --update --web-download
or microsoft/WSL - Edit file
sudo nano /etc/wsl.conf
and usingCTRL+O
to save andCTRL+X
to exit.
[boot]
systemd=true
- Install Docker https://docs.docker.com/engine/install/ubuntu/
wsl.exe --shutdown
after reboot and checksystemctl list-unit-files --type=service
- add vEthernet and
netsh interface ip add address "vEthernet (WSL)" 192.168.99.1 255.255.255.0
sudo ip addr add 192.168.99.2/24 broadcast 192.168.99.255 dev eth0 label eth0:1;
wsl hostname -I
netsh interface portproxy add v4tov4 listenport=6443 listenaddress=0.0.0.0 connectport=6443 connectaddress=192.168.99.2