Exit with error when DOCKER_HOST has not been set

If DOCKER_HOST is not set, the script essentially hangs on the loop that calls curl.