These scripts enables a docker environment on Windows 10 without the need for Docker Desktop.
- Enables WSL and Hyper-V if needed
- Install kernel update for wsl2
- Downloads latest Ubuntu 20.04 Distro and creates a wsl distribution named LocalDockerHost
- Runs an sh script that installs docker in the Ubuntu distro
- Open a powershell as administrator
- Make sure your execution policy is set to at least RemoteSigned
Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned
- Clone the repo
git clone https://github.com/Shurugwi/Wsl2Docker.git
- Run the powershell script
.\DockerOnWsl2.ps1
- Start the instance
wsl -d LocalDockerHost
wsl --unregister LocalDockerHost