WSL
Windows Subsystem for Linux (WSL) is a Windows feature that is not enabled by default.
Ubuntu 24.04
Open a dos window as Administrator to install the default Linux system:
wsl --install
Ubuntu is now available in Windows Terminal.
Make sure systemd is enabled:
cat /etc/wsl.conf
stat /sbin/init
To restrict the use of resources by WSL2 (all distros), create a text file %UserProfile%\.wslconfig
in the current user’s profile and restart wsl (wsl --shutdown
):
[wsl2]
memory=8GB
processors=4
swap=2GB
For performance issues, store container files inside WSL directory (Windows files are in /mnt/c).
For old kernels, one can enable compatibility with iptables:
sudo update-alternatives --config iptables
Install GitKraken Desktop
Install Docker.
Docker can be ran from Windows command prompt by adding wsl before:
wsl docker images