I'm putting the neccessary commands here only.
- sudo apt-get update
- sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
- sudo apt-key fingerprint 0EBFCD88
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
Installation in complete but docker daemon isn't running yet
- export DOCKER_HOST=localhost:2375
- echo "export DOCKER_HOST=localhost:2375" >> ~/.bash_profile
Caution
Make sure you click checkbox in your Windows Docker Desktop for Expose daemon on tcp://localhost:2375/ without TLS