Member-only story

Laravel Docker Development Environment on Windows

1. Install WSL2

Jay Gao
3 min readJan 25, 2021

Please read this article to know how to install WSL2.

Windows Subsystem for Linux Installation Guide for Windows 10

I prefer Ubuntu as the subsystem, but you can choose other Linux distros in Windows Store.

2. Install Docker Desktop

Download the ‘Docker Desktop’ installer from https://www.docker.com/products/docker-desktop

https://www.docker.com/products/docker-desktop
Author Screenshot

After completing the docker desktop installation, it will require you to sign out from Windows, so please save your work before you sign out.

After you sign in Windows, let’s test if Docker is working.

Open your Windows Terminal, the default tab would be Windows PowerShell.

First, check if Docker is successfully installed on your WSL2, run this command below.

wsl -l -v

Output should be similar to this

Second, make sure Docker Desktop is configured to use the WSL2 backend. Please check this article:

https://docs.docker.com/docker-for-windows/wsl/

3. Create Your First Laravel Project

--

--

No responses yet

Write a response