Install ubuntu from Microsoft Store
Go to store and download Ubuntu 18.04 LTS (you can also try latest version)
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
$ 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
- Once docker and docker-compose is installed, verify it by executing the command
$ docker -v
$ docker-compose -v
Start docker daemon
- Execute below command in
cmd
to start daemon
$ wsl -u root ^ dockerd
NOTE: Do not close this window.
Whenever you turn on your system repeat step Start docker daemon to start the daemon.
Top comments (0)