If you’re getting this error on Mac OS X, try the following command:

eval “$(docker-machine env default)”

While the Docker QuickStart Terminal should keep this in its profile, sometimes Docker needs this command to be run manually.