-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running applications inside the container #1
Comments
(My english is not good.) And run docker with -p 20080:20080 . |
@gai00 Sorry but the Cloud9 Editor starts a process at a random port inside the container... :) At that moment, it is a chicken-egg problem!!! Docker needs to create the port forward before... This does not work... |
That's the whole point of this issue... Your container was assigning a random port to the RUN... This makes things completely complicated... |
docker run -p 20080:20080 -p 3131:3131 -p 80:80 layer/cloud9 ... If you meet the bug about missing session, this may help you. |
@gai00, I completely understand how to expose ports... All I am saying is that ports should be random as they are in Cloud9, and NEVER statically chosen... This is the feature needed to maintain it... All my apps are configured using "env.PORT"... thanks! |
@marcellodesales , We are waiting for new version Cloud9. (maybe long time) If you want to allow random port, and specific hostname (localhost/127.0.0.1), My docker file set -l 0.0.0.0 on entrypoint. (Listen to all, using host firewall to block) |
Hi @gai00
How can I run the applications inside the Docker container??? Since there's only one port open 3131, I can't connect to the application when I do "Run"...
The port numbers are randomly assigned by the Cloud9 Editor... Is there a way to set a static port number instead? That way, it would be easier to run it from Docker.
Thanks a lot!
The text was updated successfully, but these errors were encountered: