ngrok share not work
share_1 | [07/05/16 17:55:38] [INFO] Reading configuration file /.ngrok
share_1 | [07/05/16 17:55:38] [INFO] [client] Trusting root CAs: [assets/client/tls/ngrokroot.crt]
share_1 | [07/05/16 17:55:38] [INFO] [view] [web] Serving web interface on 0.0.0.0:4040
share_1 | [07/05/16 17:55:38] [INFO] Checking for update
share_1 | [07/05/16 17:55:38] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1 | [07/05/16 17:55:38] [INFO] Waiting 1 seconds before reconnecting
share_1 | [07/05/16 17:55:39] [EROR] Error while checking for update: Post https://api.equinox.io/1/Updates: x509: failed to load system roots and no roots provided
share_1 | [07/05/16 17:55:44] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1 | [07/05/16 17:55:44] [INFO] Waiting 2 seconds before reconnecting
share_1 | [07/05/16 17:55:46] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1 | [07/05/16 17:55:46] [INFO] Waiting 4 seconds before reconnecting
share_1 | [07/05/16 17:55:50] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1 | [07/05/16 17:55:50] [INFO] Waiting 8 seconds before reconnecting
share_1 | [07/05/16 17:55:58] [EROR] control recovering from failure dial tcp: lookup ngrokd.ngrok.com: no such host
share_1 | [07/05/16 17:55:58] [INFO] Waiting 16 seconds before reconnecting
@sy2nyk that's for reporting this. I guess no one used this in a while and something got outdated.
@sy2nyk here's a more recent docker image for ngrok (I guess we should have our own): wernight/ngrok
Try it like this. In docker-compose.yml:
share:
hostname: share
image: wernight/ngrok
ports:
- "4040:4040"
links:
- web:app
then run
docker-compose rm -vf share
dsh up
You can get the assigned domain name by accessing ngrok's web UI at http://192.168.10.10:4040 ... Just saw your new comment. If that works for you - great :)
Going to keep this issue open until we have our own ngrok image and a PR to updates the docs.
I'm also now thinking about having ngrok as a global system service in Drude, however that will make domain management and request inspection per project difficult. As a project level service each ngrok instance is serving a single project, which makes things easier.