-
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
[podman machine] Port auto-forwarding does not work in rootless mode and macOS #11396
Comments
Can you try running with |
@Luap99 Wow, It works fine! (rootless mode on Linux)
(macOS)
It also works when using |
This one's probably me, we should be doing that automatically for machine VMs. Self-assigning. |
@mheon The problem is that we parse this into specgen on the client, so |
Argh. Alright, makes sense. Maybe we should make that the default for OS X and Windows builds of c/common and containers.conf? |
Yes I think that would be the best way to fix it |
Just confirming that adding |
@ashley-cui @jnovy PTAL, is this something we do in a brew build somewhere? |
Probably shouldn't be done in brew, maybe in the our makefile or somewhere in podman? |
I am talking about where the containers.conf comes from that we ship for MAC. |
Ah, no, the containers.conf isn't touched or installed by homebrew. |
Yes, this should be compiled-in defaults only |
This should better support rootless CNI usescases. Fixes containers/podman#11396 Signed-off-by: Matthew Heon <[email protected]>
This should better support rootless CNI usescases. Fixes containers/podman#11396 Signed-off-by: Matthew Heon <[email protected]>
this works in 3.3.1 and later. if you have 3.3.1, it should have installed gvproxy ... then simply create a new network and run the container like you did earlier. |
FWIW, I installed Podman via Homebrew today and I had to add the above to work with forwarding. Followed the instructions for macOS as well. |
The next release (probably 3.3.2?) should include the changed default. I don't have a solid date on when that's coming out, probably in the next two weeks. |
This should better support rootless CNI usescases. Fixes containers/podman#11396 Signed-off-by: Matthew Heon <[email protected]>
None of the suggested workarounds fixed it for me. I'm on macOS, installed podman 3.3.1 via Homebrew, set the
(The image variable is set before in the script to a correct path to our registry. The whole thing is just to run local Oracle DB for software development, nothing more. There's a second podman run command after that that creates the actual container, but it already fails on this one.) The
Note that it fails even if I don't use the |
This is fixed already, but requires a new |
We're putting together a Podman 3.3.2 later this week that should have all the fixes bundled together and should Just Work. |
Ok, thanks. Looking forward to it! :-) |
any updates on this? |
We decided against 3.3.2, and instead are releasing 3.4.0 on Wednesday.
That should have all the bugfixes we've accumulated. 3.4.0-RC2 is presently
available, though I don't know if we've built the RC for OS X.
…On Sun, Sep 26, 2021 at 7:08 PM hawkeng ***@***.***> wrote:
any updates on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11396 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCD53WDEDWCBY6YMDYTUD6RWHANCNFSM5DHAGSJA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This doesn't work for me. Instead I get this:
|
Please open a new issue. |
Hi @mheon , the new |
It should be in the release notes of the containers/common library as the fix was there. It is fixed in 3.4.0. |
We've been experiencing the same error under WSL2 (Ubuntu) and podman. |
I've just tried with the development version of podman (3.4.0) and I get the same results under WSL2! This issue should be reopened as the bug is still present in the latest release... |
WSL2 has nothing to with this, this issue is about podman machine port forwarding. |
@Luap99 sorry, at first I thought it was the same issue that I'm observing with my application but only when I deploy on podman under WSL2. |
I am not sure if this is connected. But I am facing the same issue if I am running a container within a pod
having
|
What Podman version? |
My bad, sorry
|
Please open a fresh issue, that version should have all the issues we know about with port forwarding worked out. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When I run the podman machine with Podman v3.3.x and gvproxy.
In rootless mode on Linux or macOS, automatic port forwarding by gvproxy does not work when I start the container and expose the port.
In root mode on Linux, automatic port forwarding does work.
Steps to reproduce the issue:
(rootless mode on Linux)
Describe the results you received:
Describe the results you expected:
Automatic port forwarding works, allowing access to exposed ports.
Additional information you deem important (e.g. issue happens only occasionally):
Automatic port forwarding does not work on macOS as well as rootless mode on Linux.
It works fine in root mode on Linux.
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.):
The text was updated successfully, but these errors were encountered: