Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.74 KB

DOCKER-WSL-SETUP.md

File metadata and controls

34 lines (23 loc) · 1.74 KB

Docker with WSL Setup

Prerequisites:

  • Windows 10 (version 1903 or later) or Windows 11

  • WSL 2 enabled:

    1. Open PowerShell as administrator.
    2. Run wsl --supported to verify compatibility.
    3. If compatible, enable WSL 2 with: wsl --set-default-version 2

Installation Steps:

  1. Install WSL 2 (if not already installed):

    • Follow this YouTube tutorial: https://youtu.be/eId6K8d0v6o
    • If Ubuntu is not installed for WSL, Run wsl --install --d Ubuntu to install it.
  2. Install Docker Desktop:

Enabling WSL Integration in Docker Desktop:

  1. Open terminal and switch to Ubuntu. Switching to Ubuntu
  2. Open Docker Desktop (has to be running in the background).
  3. Go to Settings > General.
    Go to Settings
  4. Under "WSL Integration," enable "Enable WSL 2 backend" (if not already enabled). Enable WSL 2 Backend Enable Ubuntu from Resources > WSL integation
  5. If you have multiple WSL distributions, select your preferred one under "WSL Integation."
  6. Now you can run everything from Quick Start Guide inside the Ubuntu console we opened in Step #1.

Additional Notes: