Mac OS X Brew docker-compose won’t run due to “Couldn’t connect to Docker daemon” error

It’s reported as fixed since 2015 here but if running:

docker-compose build

Still says “you might need to run docker-machine start default“, you can’t connect, and the docker-machine is already running, you can configure compose to use the machine with

eval "$(docker-machine env default)"