I am attempting to migrate from boot2docker to docker-machine.
I followed the directions here to install docker but I keep getting the following message:
I encountered the same error due to the reason that I had setup the environment to a particular docker machine which I later deleted but my environment was still set to the deleted machine. So docker calls were being redirected the a non-existant machine causing the error.
I unset the environment variables and the issue was fixed:
eval $(docker-machine env -u)
To see which environment variable would be unset run:
docker-machine env -u