-
Notifications
You must be signed in to change notification settings - Fork 118
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
net=host mode bug under mac, container with default bridge mode can not access host opening port #68
Comments
Any progress for this issue? We are meeting with the same issue. |
hi, is there any time schedule? i checked it everyday, but nothing happened. |
I'm blocked by this issue as well. |
I'm experiencing the first issue as well.
|
In this case, The ability to set the With that said, it would help us to understand what sort of applications need to run with It might be easier to split this in to two issues to track being unable to access services running on the Mac from the container's default gateway IP address.... |
@dave-tucker that clarifies things. Then how does one allow the container to access the mac host's interfaces (what host should mean imho)? Or is that a Linux only thing? |
@AlexGustafsson: thanks for the clarification. Allowing the container to be accessed via a specific Mac host interface sounds entirely reasonable to me. I had hoped something like |
@ziyouchutuwenwu to telnet to a host port, you can telnet to the default gateway (
Is this sufficient for your use-case? |
@djs55 ,thank you for your help |
not resolved for version
mac version
my docker test command
result is
my host ip address is
|
@ziyouchutuwenwu the resolution discussed above was not being able to use |
@justincormack thank you very much, i will use port mapping instead. |
@ziyouchutuwenwu, I'm curious why its hard to bind to a host interface? |
@justincormack thank you! I don't know why but this is the only answer I found in all the bugs on net host not currently working on docker for mac. |
I was very surprised to see this not working in the new shiny macOS version of Docker (working in the intuitive way, not in the "yes, strictly speaking 'host' means 'vm' on macOS"). Is there a workaround when With the old Docker I could create a bridged adapter in VirtualBox to achieve this if I remember correctly? |
still doesn't work for version 1.12.6. |
Any update on this issue. I tried the latest docker and I still experiencing it. |
+1 |
My workaround has been using the local address "host.docker.internal" as it was mentioned here. |
Any news whether this issue is still open? |
Seems no solution yet? |
Any updates on this? |
4 years and still no response/fix? |
need a fix or workaround urgently.. |
A temporary workaround is to install a ubuntu VM through VirtualBox, hook it up via bridge mode and THEN run the docker inside of it. |
This response to a similar issue worked great for me. Moving from VirtualBox to xhyve was clearly a regression for networking in Docker. |
@ganttee have you tested this? |
Hi everyone!, I tried to follow: However, I got lost on the generate_sevice.sh script. Nor I understand the avahi side of things. I think I missing a few steps. I am trying to run it on a Mac M1 silicon. Any help would appreciated. thanks! |
Anyone know if macvlan interfaces are supported on Macs? (I assume not) |
It's been almost 6 years now that this issue is up. Isn't a doable thing for Docker team to implement a dynamic port forwarding feature between xhyve and the host in order to have |
New cmdline tool I made (based on cmd/debug) to relay dns-sd to docker containers on darwin to help deal with some limitations of docker desktop (docker/for-mac#68). Signed-off-by: Eric Van Hensbergen <[email protected]>
New cmdline tool I made (based on cmd/debug) to relay dns-sd to docker containers on darwin to help deal with some limitations of docker desktop (docker/for-mac#68).
Sort of baffled I just wasted hours debugging an issue that has existed for years... |
Same here, but I still hope I will find a workaround, I've read some people succeed to configure a VM and use host network mode properly, not sure how to do though a tutorial would be more than welcomed. |
Here’s a homebridge-specific tutorial (the VM’s network adapter needs to be configured as “bridged” - and perhaps promiscuous depending on your use-case - in the VM’s configuration on the host machine). Workaround was previously boot2docker/docker-machine. (Or just a proper Linux VM). Guessing Rancher Desktop or Colima now. Perhaps someone will correct me. https://www.paolomainardi.com/posts/docker-performance-macos/ |
|
going to mark this as a duplicate of docker/roadmap#238 so we have one place to track this. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
here is my host mac network info
issue 1
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
issue 2
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
The text was updated successfully, but these errors were encountered: