Connection refused on nginx docker container
The issue is that your DOCKER_HOST
is not set to localhost, you will need to use the IP address of your docker-machine, since you are using Docker Toolbox:
docker-machine ip default
# should return your IP address.
See Docker Toolbox Docs for more information.