-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
allow_host_loopback=true does not work on MacOS #12507
Comments
|
It doesn't work either, regardless of the slirp4netns option:
These are the contents of the /etc/hosts file in the two cases:
What IP / DNS name should I use from the container the VM host? I need to access my Mac. Thanks in advance. |
Ah commit cf28dab was not backported to v3.4. |
Thank you for reopening, let me know if there's anything I can do to test. |
Does |
PR #12517 for the backport to 3.4 |
This is the result:
|
If you use |
I confirm that this command works:
Great! So I'll wait for the next 3.4 and try it out. Thanks! |
Closing since the PR is merged, the next release happens today or tomorrow but you will need to wait until the podman version inside the VM is updated which will take at least two weeks. |
I'm now using podman 3.4.4, but the issue still remains - how exactly can I reach my MacOS machine from the container? I've tried them all:
This is the
My Mac's IP is:
so I expected to find this IP in the container's |
As stated before you have to wait until podman is updated inside the VM. |
Does this happen automatically in ~2 weeks, as you said? |
yup |
I confirm that it now works: $ podman version
Client:
Version: 3.4.4
API Version: 3.4.4
Go Version: go1.17.3
Built: Wed Dec 8 19:41:11 2021
OS/Arch: darwin/arm64
Server:
Version: 3.4.4
API Version: 3.4.4
Go Version: go1.16.8
Built: Wed Dec 8 22:48:10 2021
OS/Arch: linux/arm64
$ podman run --rm docker.io/library/fedora curl -sS http://host.containers.internal:8000/foo
bar Thank you again! |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I cannot reach / ping / telnet the host from a container.
Steps to reproduce the issue:
slirp4netns:allow_host_loopback=true
from which to attempt a curl command:Describe the results you received:
Describe the results you expected:
I had expected to see the contents, "bar", as if I were executing the curl command from the host:
Additional information you deem important (e.g. issue happens only occasionally):
I've tried the above steps both on an M1 Mac Book Air and from an Intel Mac Book Pro (2015), the result is the same. The Podman version is also the same in both environments.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes.
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical, Mac Book Air M1.
The text was updated successfully, but these errors were encountered: