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

17.06: improve the Docker for Mac networking workaround #3220

Merged
merged 1 commit into from May 19, 2017

Conversation

djs55
Copy link
Contributor

@djs55 djs55 commented May 10, 2017

Proposed changes

In Docker for Mac 17.05 and earlier, there is no easy way for a container to contact a service running on the host (such as a local HTTP proxy) without knowing the host's IP addresses. The workaround in the docs is to add a new IP alias and use that.

In the upcoming 17.06 release of Docker for Mac, there is a special internal DNS name docker.for.mac.localhost. This patch replaces the IP alias workaround with a note about the new DNS name.

Unreleased project version (optional)

This only applies to Docker for Mac 17.06.

Copy link

@mdlinville mdlinville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please base this on vnext-engine branch instead.

@mdlinville mdlinville changed the base branch from master to vnext-engine May 10, 2017 20:55
@mdlinville mdlinville changed the base branch from vnext-engine to master May 10, 2017 20:55
@mdlinville
Copy link

I tried changing the base but you need to rebase it locally.

Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
@djs55 djs55 changed the base branch from master to vnext-engine May 11, 2017 09:49
@djs55
Copy link
Contributor Author

djs55 commented May 11, 2017

@mstanleyjones I've rebased onto vnext-engine and changed the base of the PR in github -- hopefully this looks ok.

@mdlinville mdlinville merged commit c885257 into docker:vnext-engine May 19, 2017
mdlinville pushed a commit that referenced this pull request Jun 1, 2017
Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
mdlinville pushed a commit that referenced this pull request Jun 5, 2017
Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
mdlinville pushed a commit that referenced this pull request Jun 16, 2017
Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
mdlinville pushed a commit that referenced this pull request Jun 20, 2017
Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
mdlinville pushed a commit that referenced this pull request Jun 26, 2017
Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
mdlinville pushed a commit that referenced this pull request Jun 28, 2017
Rather than manually creating a custom IP alas on the host, a container
can connect to the host by resolving the DNS name `docker.for.mac.localhost`.

Signed-off-by: David Scott <dave.scott@docker.com>
@djs55 djs55 deleted the d4d-networking branch June 26, 2018 12:28
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

Successfully merging this pull request may close these issues.

None yet

2 participants