docker-ngrok icon indicating copy to clipboard operation
docker-ngrok copied to clipboard

non dockerized http targets not working for Mac

Open crixo opened this issue 6 years ago • 2 comments

I'm trying to use the the ngrok container to expose non-dockerized http target but does not working on Mac. docker run --rm --net=host -e NGROK_PORT="$1" wernight/ngrok does not start the container as expected on Mac docker run --rm -p 4040:4040 -e NGROK_PORT="$1" wernight/ngrok starts the container but the proposed ngrok tunneling url does not work

Failed to complete tunnel connection The connection to https://f8fab24b.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:4200.

Make sure that a web service is running on localhost:4200 and that it is a valid address.

The error encountered was: dial tcp 127.0.0.1:4200: getsockopt: connection refused

Not problem instead to expose dockerize app using this container

crixo avatar Dec 07 '18 18:12 crixo

@crixo Hi, the host networking driver only works on Linux hosts and is not supported on Mac. Docker Docs

songjiz avatar Dec 20 '18 03:12 songjiz

These instructions should help: https://chriskirby.net/blog/using-ngrok-through-docker-for-local-service-development-on-mac

addison-outreach avatar Sep 05 '19 00:09 addison-outreach