Most people are aware that Docker Desktop is not available anymore for Windows users for free, and this became a challenge. For a couple of months, I thought if there was an alternative for my team, and I came up with a solution using WSL2 and Ubuntu.
To get started you must complete two requirements:
1. Install Windows Subsystem for Linux 2 (it doesn't work with WSL1):
2. Download Ubuntu from the Microsoft Store:
If you don't have access to the Store, you can check this tutorial and create your own distro:
Export and Import WSL Linux Distro in Windows 10
After you have installed Ubuntu and opened it for the first time, you can check in PowerShell to see if the version is correct with this command:
And you must get something like this:
If it's incorrect, you can check this tutorial and upgrade your Kernel to version 2:
Manual installation steps for older versions of WSL | Microsoft Docs
And later run this command:
After everything is ready, you must run the following scripts in Ubuntu:
First part:
Second part:
Third part:
Fourth part:
Run this line to start your Docker every time you need it.
And that's all! Just open a new Ubuntu window and start playing with Docker!
As a bonus tip, you can download the Windows Terminal for managing multiple tabs:
Get Windows Terminal - Microsoft Store
NOTES:
1. If you have any issue with the network, check the following location and edit its nameserver IP to 8.8.8.8:
Comments
Post a Comment