docker-ngrok
docker-ngrok copied to clipboard
non dockerized http targets not working for Mac
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 Hi, the host networking driver only works on Linux hosts and is not supported on Mac. Docker Docs
These instructions should help: https://chriskirby.net/blog/using-ngrok-through-docker-for-local-service-development-on-mac