PhpStorm path mapping when using Docker via WSL2

Viewed 3461

I'm using Docker based php environment (using Laradock) via WSL2 on Windows 10 (Home Edition), and I'm trying to add remote interpreter to PhpStorm.

Everything is working well, but I have a problem with path mapping between WSL and Docker, I tried even UNC path and mounted drive, and still not working.

  • PhpStorm 2020.2
  • Windows 10 Home Edition
  • Docker Desktop 2.3 with WSL2 Backend
  • WSL mounted on Network Drive (Z:)

When I try to run test.php, I'm getting the error "File not found", it seems that PhpStorm is using bad path mapping in configuration.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

0 Answers
Related