-
Notifications
You must be signed in to change notification settings - Fork 71
Linux on Windows
Kyle Hamilton edited this page Sep 6, 2020
·
3 revisions
The only way to have a true Linux world in a Windows machine is by installing a WSL in PowerShell.
- Make sure you're on the WSL2 by running
wsl -l -v
. If not, you will need to update your OS and your distro. You will also need to install Docker Desktop for Windows. - After you have everything ready, you might get error 139 when you try to run docker-compose in WSL. What you need to do is to add .wslconfig file under
%userprofile%
and add: - [wsl2]
kernelCommandLine = vsyscall=emulate
- Once you add
.wslconfig
file, restart your computer then rundocker-compose up -d
in your WSL console. It should now start up. (Screenshot 2) - The last step is to open web browser on your laptop and enter
http://localhost:8889
(screenshot 3)