How to Install Docker and Laravel on Windows (WSL + Ubuntu Setup)

Channel:
Subscribers:
504,000
Published on ● Video Link: https://www.youtube.com/watch?v=7hf4EDU9S6g



Duration: 0:00
9,315 views
244


Want to run Laravel with Docker on Windows — the right way? In this full beginner setup guide, I’ll walk you through everything you need to install and configure:

✔ ️ Docker
✔ ️ WSL (Windows Subsystem for Linux)
✔ ️ Ubuntu
✔ ️ Laravel dependencies (PHP, Composer, MySQL, etc.)

This tutorial is perfect if you're on Windows and want to build Laravel projects using Docker and WSL, just like the pros — without running into common setup issues.

📌 Terminal commands:
1: sudo apt update && sudo apt upgrade -y
2: sudo apt install php8.3-cli php8.3-common php8.3-mbstring php8.3-xml php8.3-bcmath php8.3-curl php8.3-mysql php8.3-zip php8.3-readline php8.3-gd php8.3-pgsql unzip curl git composer -y

📌 What you’ll learn:
Installing WSL and Ubuntu on Windows
Installing and configuring Docker Desktop
Setting up PHP, Composer, and Laravel
Running Laravel inside Docker with Sail
Solving common Windows/WSL/Docker errors

📌 Timestamps:
00:00 Intro
05:03 Installing WSL & Ubuntu
09:33 Installing Docker Desktop on Windows
17:31 Laravel dependencies inside WSL
21:08 Setting up Laravel Sail
23:10 Open the project in Visual Studio Code
25:01 Open your project folder
25:47 Setting up our database & .env file
26:37 Running Laravel with Docker
28:44 Viewing our database inside DBeaver
34:56 How to view your website in the browser
36:27 How to start everything up again, after closing it down

💬 If you're stuck at any point, drop your questions in the comments!
🔔 Subscribe for more Laravel + Docker tutorials:    / @dani_krossing  

#Laravel #Docker #WSL

➤ GET ACCESS TO MY LESSON MATERIAL! 👇

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Get access to my lesson material below!
Membeossing  
Phttps://www.patreon.com/mmtutsmmtuts  




Other Videos By Dani Krossing


2025-07-05Windows Person Tries Linux for the First Time | Switching from Windows to Linux in 2025
2025-05-23Watch me Debug A Cursed Calculator! 😱 | Follow Along Programming & Solving Coding Bugs Live
2025-05-10How to Install Docker and Laravel on Windows (WSL + Ubuntu Setup)
2025-05-0912 | Build a Laravel CRUD App Step-by-Step (Beginner Friendly)
2025-05-0811 | Laravel Controller Resource Methods Step-by-Step (CRUD Example)
2025-04-28I Quit Photoshop for Affinity Photo 2 (Here's Why)
2025-04-22How to Split Data into Pages Using PHP (Pagination Tutorial)
2025-04-21I Quit Adobe After 14 Years – Now What?
2025-04-1910 | Create Database Tables in Laravel with Migrations | Laravel for Complete Beginners
2025-04-189 | How to Create Models & Controllers in Laravel | Laravel for Complete Beginners
2025-02-19🔥 PHP Full Course 2025 - Learn PHP from Scratch | PHP Tutorial for Beginners 🚀
2025-01-28How to Insert Images into a Laravel Website – Step-by-Step Guide for Beginners
2025-01-257 | How to Create Layouts in Laravel & Use @include to Reuse Views! | Laravel for Complete Beginners
2025-01-126 | How to Use Post Type Routes in Laravel for Beginners | Laravel for Complete Beginners
2024-12-025 | How to Use Get Type Routes in Laravel for Beginners | Laravel for Complete Beginners
2024-11-239 | Killing the Final Boss & Escaping the Mansion! - Playing Resident Evil After 28 Years
2024-11-174 | How to Set Up a Development Build with Laravel | Laravel for Complete Beginners
2024-11-138 | Going Through the Terrifying Tunnels! - Playing Resident Evil After 28 Years
2024-11-097 | Most Intense, Stressful and Terrifying Episode yet! - Playing Resident Evil After 28 Years
2024-11-066 | Mutant Plants, Spiders, and Frogs! - Playing Resident Evil After 28 Years
2024-10-295 | Entering the Terrifying Residence in the Woods! - Playing Resident Evil After 28 Years