To install Docker in Windows, please follow these instructions before following the Linux installation instructions given above.
Please note that during software instalation you may need to restart the Ubuntu console or the computer itself, before proceeding to the next step. Therefore, try these solutions first if you find any problems.
- Step 0: (Check if the virtualization option is enabled.)
The following approach requires that the virtualization option is enabled in your BIOS,
which is the case for most recent laptops.
- Step 1: (Install Windows Subsystem Linux.)
Open a PowerShell prompt as an Administrator and run the following command:
wsl --install
If you get an error try:
wsl.exe --install
This procedure will install an Ubuntu app that may be suitable to install Docker and run Docker images. See Step 2 below if you want to install a different Ubuntu app version.
- Step 2: (Install Ubuntu using the Microsoft Store.)
Press the Windows button, type “Microsoft Store” in the search bar, and run the application.
In the “Microsoft Store” search bar, type Ubuntu, choose the distribution you want (we recommend version 22.04.4), and then click on the “Get” button. During the installation, you will be asked to give a name to the super user account, that could be different from the name of your Windows account, and set the respective password.
Once the installation is completed, a new app, named "Ubuntu” will be available, that can be accessed by pressing the Windows button, typing “Ubuntu” in the search bar, and running the application. When this is done, a command line terminal appears.
Now that you have Ubuntu installed, you can follow the Linux steps in the Ubuntu terminal. All your Windows directories will be mounted in the "/mnt" directory. For instance, if your project's directory is "C:/Users/