ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`. code example

Example 1: macbook Couldn't connect to Docker daemon - you might need to run `docker-machine start default`

$ docker-machine restart default
$ eval $(docker-machine env default)
// Apparently you need to run the eval $(docker-machine env default) every time you run the quick start terminal.

Example 2: In the default daemon configuration on Windows , the docker client must be run elevated to connect.

docker-machine env --shell cmd default

Example 3: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

sudo chmod 666 /var/run/docker.sock