Coder Social home page Coder Social logo

Comments (9)

TylerJewell avatar TylerJewell commented on May 10, 2024

We narrow the range of what is exposed so that docker will start in a reasonable time. There is significant overhead for each expert port exposed.

from che.

freewind avatar freewind commented on May 10, 2024

Is the 32768-65535 in Dockerfile still right? Shall we make the two ranges the same?

from che.

freewind avatar freewind commented on May 10, 2024

I'm not sure when I start docker image, which range of port shall I use. e.g.

  1. docker run -it --privileged -e DOCKER_MACHINE_HOST=159.203.201.197 -p 8080:8080 -p 49152-49752:49152-49752 codenvy/che:4.0.0-beta-5
  2. docker run -it --privileged -e DOCKER_MACHINE_HOST=159.203.201.197 -p 8080:8080 -p 32768-32788:32768-32788 codenvy/che:4.0.0-beta-5

Shall I start with 49152 or 32768? Or either one is OK?

from che.

TylerJewell avatar TylerJewell commented on May 10, 2024

No the internal structure is correct. The better answer is to use the --net option. We need to do more testing on that option and its performance before we make that the primary configuration.

from che.

TylerJewell avatar TylerJewell commented on May 10, 2024

Start with the 32768 but both should be ok.

from che.

freewind avatar freewind commented on May 10, 2024

@TylerJewell Not quite understand why it's 32768, since it's only exposed in Dockerfile. Does the che program running inside the container have a way to know it? I thought it should get the sys.resources.min_port from che.properties and use 49152

from che.

TylerJewell avatar TylerJewell commented on May 10, 2024

@eivantsov?

from che.

TylerJewell avatar TylerJewell commented on May 10, 2024

This should explain it.
https://eclipse-che.readme.io/v4.0/docs/usage-docker#ports

from che.

 avatar commented on May 10, 2024

range of available service ports

sys.resources.min_port=49152
sys.resources.max_port=65535

deprecated. we'll remove it from conf

from che.

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.