Need help with docker installation

This is the first time I have installed docker on my laptop which uses windows 10. I installed ubuntu on my computer and installed docker for the for the first time. Here is the link for the instructions I followed.

When I tried to finally run a program I got this error.

root@jeff-HP:~# sudo docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.


Is the Ubuntu Install on the laptop from the Windows Store or dual boot install?

On my laptop. I installed it under windows developer mode installing developer mode packages.Windows subsystem for linux beta. I basically followed a youtube tutorial here.

I tried this a while back as well and ran into more trouble than it was worth, gave up and just installed Ubuntu free --> , plenty of guides on this.

I also found this: while trying to get it working. But Ubuntu install took about 10 min and no work arounds needed, so decided to go that route instead.

Do I first have to uninstall docker and ubuntu as well beforehand?