How to use Docker on Windows 10 (without Docker Desktop)

In this tutorial I will show you how to run Docker on Windows 10 without installing Docker Desktop (which is paid software).

1. Check if you have WSL 2 enabled on your system

Type this command in PowerShell:

wsl -l -v

You should see version 2 of WSL, if not you will need to install it on your computer.

2. Install Ubuntu from Microsoft Store

After installing if you type the same command in PowerShell you should see ready Ubuntu system:

3. Create user

Run Ubuntu from you Windows 10, you should see Ubuntu terminal. You need to provide username and password for your system:

Installing, this may take a few minutes…
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: username1
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user “root”), use “sudo <command>”.

4. Enable Internet connection

Check if sudo apt update is working.

If not, go to cd /ect/

run sudo nano wsl.conf

Website

Tags: Desktop Docker