Skip to content
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

Editor cannot recognise host's 'localhost'. #2

Open
SamuelToh opened this issue Mar 29, 2020 · 1 comment
Open

Editor cannot recognise host's 'localhost'. #2

SamuelToh opened this issue Mar 29, 2020 · 1 comment

Comments

@SamuelToh
Copy link
Member

There should probably be an option to tell the editor that the address 'localhost' is meant to be the host machine's localhost and not the container's.

Shell command ip route show | awk '/default/ {print $3}' can be used to find out the ip address for routing from the container to the machine.

Maybe we can run that command and cut the ip address and substitute it with the specified 'localhost'.

@sjlongland
Copy link

In the church of Docker you're not supposed to talk to localhost unless it's something inside your own container, so they never provided a host-name to refer to the "docker host". We also use widesky-editor outside of Docker a hell of a lot, so this must be considered too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants