DEV Community

Nakul
Nakul

Posted on • Updated on

Alternative for docker desktop (windows WSL)

Install ubuntu from Microsoft Store

  • Go to store and download Ubuntu 18.04 LTS (you can also try latest version)
    Ubuntu logo from Microsoft Store

  • Once installation is complete open Ubuntu 18.04 LTS from startup menu and set a username and password (username can be you systems username without '.' and password can be same as your system password)

Install docker in ubuntu

  • Open PowerShell in this directory and execute following commands
$ wsl -u root
$ sudo apt-get update
Enter fullscreen mode Exit fullscreen mode
$ sudo apt install docker.io
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Enter fullscreen mode Exit fullscreen mode
  • Once docker and docker-compose is installed, verify it by executing the command
$ docker -v
$ docker-compose -v
Enter fullscreen mode Exit fullscreen mode

Start docker daemon

  • Execute below command in cmd to start daemon
$ wsl -u root ^ dockerd
Enter fullscreen mode Exit fullscreen mode

NOTE: Do not close this window.

Whenever you turn on your system repeat step Start docker daemon to start the daemon.

Top comments (0)