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

What does address point to? #5

Closed
matthewmueller opened this issue Jul 2, 2017 · 4 comments
Closed

What does address point to? #5

matthewmueller opened this issue Jul 2, 2017 · 4 comments

Comments

@matthewmueller
Copy link

matthewmueller commented Jul 2, 2017

I'm not sure if this is a bug or a network configuration issue on my end, but during local development, container.Address() points to something like: 172.17.0.3, when it should really output 127.0.0.1.

I'm guessing it makes more sense in the context of a CI, but would be great to also be able to use container.Address() locally.

I'm running docker for OSX.

@omeid
Copy link
Owner

omeid commented Jul 2, 2017

container.Address() points to the docker containers IP address. If you're using docker for OSx, I don't believe it will be directly accessible from your host because the docker instance runs inside a virtual machine. Hope this addresses your question.

@omeid
Copy link
Owner

omeid commented Jul 2, 2017

Yeah, just checked and the state of Docker for Mac is still the same. Perhaps a link to official docker docs on Docker for Mac Networking is a good idea.

@matthewmueller
Copy link
Author

matthewmueller commented Jul 2, 2017

Ah interesting, I wonder if this could be a workaround: docker.for.mac.localhost (not an expert in this area)

@omeid
Copy link
Owner

omeid commented Oct 30, 2017

I am sorry but adding support for Docker for X would complicate things. If you found a simpler way for supporting docker for mac and the like, please feel free to reopen this issue.

@omeid omeid closed this as completed Oct 30, 2017
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