Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Čamo's avatar
Level 3

Laravel + Docker + Windows

I am starting with Docker. As I see Laravel has docker container for new installation. But one of the requirements is to install WSL2 with Docker. WSL2 for Windows means to join insiders program for Windows and it means:

The experimental and early prerelease software and services made available to you in the Program might not be tested. You might experience crashes, security vulnerabilities, data loss, or damage to your device. ...

Do you have experience with running Laravel docker container on Windows? I have a Docker without WSL2 and it works. But Docker has some warnings about shared files between host and container....

What do you mean about it?

0 likes
8 replies
Čamo's avatar
Level 3

Also the Sail runs as docker containers -> After Sail has been installed, you may run the sail:install Artisan command. This command will publish Sail's docker-compose.yml file to the root of your application:

newbie360's avatar

if i'm correct, Windows enabled WSL will cause VMware / Virtualbox can't boot up

because WSL exclusive the virtual environment, if i has other virtual machine in VMware / Virtualbox

so i can't use Sail (Docker), is this true ?

newbie360's avatar

no i mean, if WSL enabled, can't use VMware / Virtualbox at the same time?

Snapey's avatar

Ive been running wsl on my windows laptop for 2 years with no issues

Windows 10 on the otherhand.....

Please or to participate in this conversation.