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

They're close, but "docker.for.mac.host.*" and "docker.for.win.*" should be better #1855

Closed
atrauzzi opened this issue Mar 19, 2018 · 2 comments
Assignees

Comments

@atrauzzi
Copy link

atrauzzi commented Mar 19, 2018

When running Docker for Windows and Docker for macOS, we get these handy aliases like docker.for.mac.localhost, docker.for.mac.internal, docker.for.win.localhost and docker.for.win.internal.

Unfortunately, when my projects are being worked on between macOS and Windows, someone has to go changing any of these host names for the specific platform they're on, despite the premise of the two being the same! The fact that these two things that accomplish the exact same outcome are named differently is unhelpful.

Is there any way we can get a new convention like docker.internal and docker.localhost? Would it also be possible to simply have them resolve localhost when used on Linux which obviously doesn't have the extra layer going on?

The name of the game here is that I need my containers to have a consistent way to reference not the VM, but the actual physical hardware they're running on. Bonus points if it's a consistent IP address so that I can configure my own DNS aliases!

Moreover, would it be possible either with or without my suggested change to get all these magic hostnames documented somewhere? They seem to be rather un-googleable and largely defined by anecdotal knowledge rather than being clearly offered.

cc.

@akimd
Copy link
Contributor

akimd commented Mar 19, 2018

Let's close this one, and track the issue in docker/for-mac#2705.

@akimd akimd closed this as completed Mar 19, 2018
@akimd akimd self-assigned this Mar 19, 2018
akimd added a commit to akimd/docker.github.io that referenced this issue Mar 19, 2018
Prompted by docker/for-mac#2705 (and
docker/for-win#1855).

Signed-off-by: Akim Demaille <akim.demaille@docker.com>
akimd added a commit to akimd/docker.github.io that referenced this issue Mar 21, 2018
Prompted by docker/for-mac#2705 (and
docker/for-win#1855).

Signed-off-by: Akim Demaille <akim.demaille@docker.com>
@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants