
I assume, that you already have a running project and want to integrate it with Lando and WSL 2. Integrate Lando in an existing Drupal project Nano /var/lib/dpkg/status, search for Lando and remove the entry from the file. To fix the package manager / apt-get you have to remove the Lando Package from /var/lib/dpkg/status. Use at least Lando 3.0.26 found on github.ĭpkg -i -ignore-depends=docker-ce lando-v3.0.26.deb But the official documentation has a solution for that. This is a bit tricky, because docker-ce is a hard dependency of the package.

Phpstorm wsl2 install#
Now we will install Lando inside our brand new WSL 2 distro "Ubuntu". You have to install Docker Desktop on Windows! Install Lando > 3.0.26 inside your Ubuntu distro There are a few tutorials online, that claim that you have to install docker inside your Linux distribution. By the time of writing, the current version was 3.3.3. Next, install Docker Desktop on WINDOWS!. Wsl -set-version Install Docker Desktop on Windows
Phpstorm wsl2 upgrade#
If you already have a WSL 1 distro you can upgrade it: All future launches should take less than a second. The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for a minute or two for files to decompress and be stored on your PC. Open the Microsoft Store and install Ubuntu. Wsl -set-default-version 2 Install the Distro Ubuntu from the Microsoft Store Install WSL 2 on Windows 10įollow the official documentation to install and enable WSL 2:Īt some point, you will have to enable Hyper-V and set WSL 2 as your default version: In order to have faster indexing and file change listener in your IDE, you need a PHPStorm Version later thatn 2021.1. I combined these new technologies with Lando and created a perfect developer setup for any PHP / Symfony / Drupal-driven development stack. It takes less than 10 seconds to start the Docker daemon compared to almost a minute in the previous version of Docker Desktop. This means, Docker Desktop only uses the required amount of CPU and memory resources it needs, while enabling CPU and memory-intensive tasks such as building a container to run way faster.Īdditionally, with WSL 2, the time required to start a Docker daemon after a cold start is significantly faster. Docker Desktop uses the dynamic memory allocation feature in WSL 2 to greatly improve the resource consumption. The best feature of WSL 2 is the fact, that this is the new de facto-standard backend for Docker Desktop on Windows. The goal is to increase the file system performance and adding full system call compatibility. It's basically a native Linux kernel in Windows 10. WSL 2 is a new architecture that completely changes how Linux distributions interact with Windows.

This was the first release, where WSL 2 (Windows Subsystem Linux) was officially available as a part of Windows 10.

I also used WSL 1, but accessing files from an NTFS drive under /mnt/c/docs was slow.īy the end of May 2020, Microsoft started distributing the Windupdate.
Phpstorm wsl2 update#
composer update took minutes on large projects and every page load was slow.

It worked well, but it was painfully slow. No need for mutagen.io anymore.įor years, I'm using DrupalVM and Vagrant on my Windows machine combined with Vagrant WinNFSd. Revised blog post: The latest PHPStorm version supports indexing and file listener directly on the WSL folder \\wsl$\.
