codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Member-only story

How to use Laravel Sail with the Docker Desktop WSL 2 backend

Paul A. Byström
codeburst
Published in
4 min readFeb 11, 2021

Photo by Dave Herring on Unsplash

In general, Docker and containers are something every developer has to get familiar with sooner or later. Let’s take a look at installing Docker Desktop on Windows 10, how it integrates with Windows Subsystem for Linux (WSL) 2, and how to use Laravel’s new command-line tool Laravel Sail to get up and running with Laravel in no time.

Prerequisites

  1. Windows 10, version 1903 or higher
  2. Windows Subsystem for Linux (WSL) 2

1. Install Docker Desktop

First, make sure you have the prerequisites installed before continuing with the installation. You can find instructions on how to enable WSL 2 in this article:

Download and follow the usual installation instructions to install Docker Desktop; when prompted, make sure the checkbox for “Install required Windows components for WSL 2” is checked.

Screenshot by Author

When the Docker Desktop installation has finished, you should have access to docker from within WSL.

Screenshot by Author

If this command, for some reason, isn’t working for your distribution.

  1. Open Docker Desktop.
  2. Go to Settings > Resources > WSL Integration.
  3. Enable integration with your distribution.
  4. Click Apply & Restart.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Paul A. Byström

I’m a tech-enthusiast located in Sweden.

Write a response