-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Docker Launcher - wrong hostname output when running in a VM #1925
Comments
@l0rd - FYI. |
tl;dr You should use
|
@l0rd - I find it confusing to tell users that they have to set CHE_HOSTNAME just to get proper output when the launcher starts up. I agree that #1644 is probably the best fix. Is #1644 assigned to anyone - ie, is anyone working on it for a proper resolution? FYI, CHE_HOST_IP is essential here, otherwise the browser clients cannot communicate to the Che server running in the VM. So, it would be nice to have #1644 solved once and for all. |
That's the issue I'm currently working on :-) I can't assign it to myself otherwise I would have done so. Setting To infer |
Can we remove the milestone and add sprint/next-sprint? |
@JamesDrummond Yes this issue should be removed from 4.6.0 milestone as well as #1644 |
@riuvshin Can you do this? I don't have access to do this yet for eclipse/che project. |
@benoitf Can you provide a status label for this? |
@TylerJewell Do you think that showing 2 URL would solve that issue? Che external URL correspond to |
@l0rd - as an end user, I would probably find that confusing. It would be unclear to me which URL I should try, and it would not be intuitive for me to try an internal URL, because I would expect it to be internal-only. |
Pull request: If you want to test this - you have to rebuild the codenvy/che-launcher:nightly image until our CI systems push it out. |
We print out the wrong hostname in the final line of the che-launcher output if it is running inside of a VM.
Reproduction Steps:
1: Launched CentOS 7.2 VM.
2: Disabled iptables / firewalld.
3: Installed Docker 1.11.2
4:
docker run -v /var/run/docker.sock:/var/run/docker.sock \ -CHE_HOST_IP=192.168.56.110 codenvy/che-launcher:nightly start
Output shows
ECLIPSE CHE: http://localhost:8080
. It should showECLIPSE CHE: http://192.168.56.110
. I think that the fix is if a user provides-CHE_HOST_IP
parameter, then we should return that value instead oflocalhost
.Offending code:
https://github.com/eclipse/che/blob/master/dockerfiles/che-launcher/launcher_funcs.sh#L120-L128
The text was updated successfully, but these errors were encountered: