ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running? Windows subsystem for Linux
From this github issue:
Try running
dockerd
orsudo dockerd
if required first to start daemon. If you startdockerd
withsudo
you may want to rundocker-compose up
withsudo
also. otherwise it's fine.
It turns out the issue was to do with the groups. The solution that I found worked was to remove the user group "docker" using:
sudo groupadd docker
sudo usermod -aG docker $(whoami)
Then I ran the command for my make file and it worked!
I hope this benefits some of you!