Skip to content

Guide on setting up WSL2 with Docker Desktop Ubuntu and PHPStorm

Notifications You must be signed in to change notification settings

bavragor/wsl2-ubuntu-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Install WSL2

Open the windows terminal

Check version with wsl --version, should be sth. like WSL-Version: 2.2.*.*

List all available distributions with wsl --list --online

Install latest LTS of Ubuntu with version from cmd before e.g. wsl --install Ubuntu-24.04

Create a .wslconfig in your home directory and add the following:

[experimental]
autoMemoryReclaim=gradual

Restart terminal and open ubuntu console, execute these:

sudo apt update
sudo apt upgrade

Install Docker Desktop

Download and install the latest docker desktop version.

IDE Optimizations

sudo apt install inotify-tools
sudo sh -c "echo \"fs.inotify.max_user_watches = 524288\" >> /etc/sysctl.conf"
sudo sysctl -p

About

Guide on setting up WSL2 with Docker Desktop Ubuntu and PHPStorm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published