$ sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
<https://download.docker.com/linux/ubuntu/gpg>
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
pub 4096R/0EBFCD88 2017–02–22Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88uid Docker Release (CE deb) docker@docker.comsub 4096R/F273FCD8 2017–02–22
<https://download.docker.com/linux/ubuntu>
Now we're ready to install Docker Community Edition
$ sudo apt-get update
$ sudo apt-get install docker-ce
When that finishes, you'll end up having everything installed in Linux, but as I mentioned before, the Docker Engine does not run in WSL so if you write any command like docker images, you'll see a message like this one:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
No, it is not running and it'll never be, at least for now.