Skip to content

Shurugwi/Wsl2Docker

Repository files navigation

Running Docker on WSL2 without Docker Desktop

Overview

These scripts enables a docker environment on Windows 10 without the need for Docker Desktop.

What the scripts do

  1. Enables WSL and Hyper-V if needed
  2. Install kernel update for wsl2
  3. Downloads latest Ubuntu 20.04 Distro and creates a wsl distribution named LocalDockerHost
  4. Runs an sh script that installs docker in the Ubuntu distro

Running the script

  1. Open a powershell as administrator
  2. Make sure your execution policy is set to at least RemoteSigned
Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned
  1. Clone the repo
git clone https://github.com/Shurugwi/Wsl2Docker.git
  1. Run the powershell script
.\DockerOnWsl2.ps1
  1. Start the instance
wsl -d LocalDockerHost

Delete the wsl instance

wsl --unregister LocalDockerHost

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors