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

zanix's avatar
Level 22

Laravel 8 existing project on Windows with Docker

I have an existing project created on my mac a while ago and hosted a repository on BitBucket. I'm now trying to set it up on my Windows 10 machine but without any luck. :/

I've cloned my repo in a local directory installed Docker installed WSL 2. But I have a ton of problems starting it up.

I've also run composer install, added my .env file,

Installed remote development in VS Code and when I try to open it I'm getting this error:

[2021-01-10 23:24:37.303] /root/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/server.sh: line 12: /root/.vscode-server/bin/ea3859d4ba2f3e577a159bc91e3074c5d85c0523/node: not found [2021-01-10 23:24:37.303] VS Code Server for WSL closed unexpectedly.

And now I'm completely stuck and have no idea how to continue developing my existing project on Windows...

0 likes
5 replies
zanix's avatar
Level 22

Yes, I've used laravel sail when I started my project on my Mac machine. But now after moving to Windows 10 I can't pull that same project and just continue where I left it.

Installed Docker, WSL2, cloned my repo but can't start it from VS Code inside WSL. I should be able to just run in my terminal:

wsl

code .

But when I try it "code ." (to open my codebase remotely in VS Code) I just get an error mentioned in my first post.

sr57's avatar

What I should do in such a case

  1. Setup Laravel + packages needed in your new dev enviromnent
  2. Create e fresh new Laravel project and check it works
  3. Duplicate this project and remplace with the sources of your 'old' project (not the vendor directory)
  4. Create, restore your db
  5. Adapt your .env
zanix's avatar
Level 22

Yeah I used to do it like that but now with Laravel 8 and containers it's slightly different and I'm a bit lost :D

I should be able to rebuild my docker image and just continue from where I left it because I have my docker-compose.yml file. I've read the documentation bunch of times but there is not that much saying about setting it up Laravel Sail on Windows. There is much easier to follow it on Mac/Linux.

sr57's avatar

it's slightly different and I'm a bit lost :D I should be able to rebuild my docker image

Of course you should, it's the function of docker, but if you have pb, you'll probably spend less time rebuild a fresh docker laravel environment with the "brute method"

Please or to participate in this conversation.