-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Switch to newer detect-Docker-host-IP mechanism on Mac #224
Comments
Something like
should be pretty quick to query; the exit status is sufficient to know whether |
The latest (edge) release makes this a bit more complicated. The release notes say:
|
|
If they ever fix docker/for-linux#264, we could avoid the |
Fixing this will move us closer to Windows support for the container method. |
Indications for possible solutions are https://dev.to/bufferings/access-host-from-a-docker-container-4099 |
Telepresence 0.95 includes #726, and thus does not try to connect to the host from within the container. As such, this is no longer an issue. Closing. |
Currently on OS X we add a special IP alias to
lo0
loopback interface, so that Docker containers can find thekubectl port-forward
port when using--method container
. Newer versions of Docker support a special DNS recorddocker.for.mac.localhost
instead (this may obviate need for root, while we're at it.)See https://docs.docker.com/docker-for-mac/networking/#use-cases-and-workarounds
We can't use this mechanism immediately since it's only present in absolute latest version of Docker, but eventually could switch.
The text was updated successfully, but these errors were encountered: