Giter Club home page Giter Club logo

Comments (4)

muripic avatar muripic commented on August 15, 2024

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.

muripic avatar muripic commented on August 15, 2024

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.

bekkazy-k avatar bekkazy-k commented on August 15, 2024

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.

drptbl avatar drptbl commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.