These are the steps I use to run Docker without using Docker Desktop.
-
Ensure you are using WSL 2 by running
wsl --list --verbose
in PowerShell. - Then from a WSL2 bash shell...
- Completely uninstall Docker: https://askubuntu.com/q/935569
- Install docker using the repository https://docs.docker.com/engine/install/ubuntu/
-
Start the daemon
sudo service docker start
. -
Test that docker works
sudo docker run hello-world
.
Resources
https://stackoverflow.com/a/56051167/1108891