EN
WSL - start a specific distro (bootup, boot up)
7 points
In this short article, we would like to show how to start a specific distro on WSL.
Quick solution:
xxxxxxxxxx
1
wsl -d YOUR_DISTRO_NAME_HERE
Where: it is eqivalent to wsl --distribution YOUR_DISTRO_NAME_HERE
.
In this section you can find example of starting Ubuntu disto.
Simple steps:
- Open any command line, e.g. PowerShell
- View the list of distros and states (Ubuntu is Stopped):
xxxxxxxxxx
1PS C:\Users\john> wsl -l -v
2NAME STATE VERSION
3* docker-desktop Running 2
4Ubuntu Stopped 2
5wsl-vpnkit Running 2
6docker-desktop-data Running 2
- Start Ubuntu disto:
xxxxxxxxxx
1PS C:\Users\john> wsl -d Ubuntu
- View the list of distros and states, again (Ubuntu is Running):
xxxxxxxxxx
1PS C:\Users\john> wsl -l -v
2NAME STATE VERSION
3* docker-desktop Running 2
4Ubuntu Running 2
5wsl-vpnkit Running 2
6docker-desktop-data Running 2