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.
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.
Laravel Sail is a light-weight command-line interface for interacting with Laravel’s default Docker development environment.
When using Laravel Sail, your application is executing within a Docker container and is isolated from your local computer.
For more information about these commands and Laravel Sail in general, please visit the Laravel Sail Documentation.