Comments (4)
Same thing happened to me and it's because the entrypoint.sh
script is being run with the CMD
directive instead of ENTRYPOINT
: https://github.com/wernight/docker-ngrok/blob/master/Dockerfile#L46
So when you run docker run ...
with a command at the end, such as ngrok tcp oracle12c:1521
(or ngrok http gws:8080
in my case), the CMD in the Dockerfile is overridden and the entrypoint.sh
, which adds the auth token to the config file, script does not run. I'm sending a PR to fix this.
from docker-ngrok.
Closed pull request because thanks to an error when using it in docker-compose I realized that instead of adding the command you can use NGROK_PORT
, like this:
$ docker run -d -p 4040:4040 --net pkngroknet --name ngrok \
-e NGROK_PROTOCOL="TCP" \
-e NGROK_AUTH="<myKey>" \
-e NGROK_PORT="oracle12c:1521" \
wernight/ngrok
from docker-ngrok.
You can use auth token like this:
docker run --rm -it --link web_service_container wernight/ngrok ngrok http web_service_container:80 --authtoken [your-token]
from docker-ngrok.
Solution:
ngrok:
container_name: ngrok
image: wernight/ngrok@sha256:f334773a21fdb8c88b320d74ed11f6a2f936840aa85b45e8ddb329823f8e1635
ports:
- "4040:4040"
command: ["ngrok", "http", "novnc:8080", "--authtoken", "${NGROK_AUTH}"]
depends_on:
- novnc
links:
- novnc
networks:
- x11
from docker-ngrok.
Related Issues (20)
- Periodically rebuild image HOT 3
- api/tunnels returns empty response when using auth HOT 1
- Does not support spaces in password
- I need help to expose NextCloudPi
- Add NGROK_LOOK_DOMAIN commit to dockerhub HOT 1
- Updating NGROK docker and other questions HOT 1
- Receive ngrok url HOT 5
- Request: image version tag
- authtoken is not respecting in container HOT 1
- Nginx is showing always after generating ngrok url
- Cannot link to webcontainer
- Update? HOT 1
- Inspect Option Support? HOT 1
- multiple ports HOT 1
- transfer maintainership to ngrok? HOT 3
- Add ARM64 (Apple Silicon) support HOT 2
- Add ARM64 (Apple Silicon) support HOT 1
- Ngrok
- ERROR: unknown shorthand flag: 'o' in -ostname=my-app.ngrok.io HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ngrok.