PHPStorm, Docker via WSL2 - File Watcher alternative

Hello there,

I've searched all over for an answer to this but have yet to find one, so I'm hoping someone here can help.

I'm using a Windows 11 laptop with WSL2 and the latest version of PHPStorm as my development environment.

I'm looking for a way to be able to sync my files between my Docker container and my native Windows project files without using Docker for Windows as a go-between.

Previously, I used Docker for Windows and had a File Watcher set up so that when I made changes in my project, it would use the “docker cp” command to copy the updated files over to my remote docker container.

Docker for Windows is no longer an option for me and I'm trying to find a way to replicate my previous setup using Docker through WSL2.

Is this something that would be possible or will I just have to settle for manually copying the files to my remote docker container?



Please sign in to leave a comment.