Port forwarding to host OS does not work with podman machine #11429
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Exposing of container ports is not propagated to host OS when using podman machine on macOS.
According to the release notes it should work now:
Steps to reproduce the issue:
podman machine init
podman machine start
podman run -p 8080:80 docker.io/library/nginx
curl http://localhost:8080
Describe the results you received:
Describe the results you expected:
Nginx welcome page should be returned. (It works if I run curl inside the VM - using
podman machine ssh
)Additional information you deem important (e.g. issue happens only occasionally):
Another issue is that if I stop the container and start a new one, I get:
Let me know if I should create a new issue for this.
Note that I get this warming when starting the VM using
podman machine start
, but it doesn't seem significant: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.):
macOS Big Sur 11.4 with HomeBrew
The text was updated successfully, but these errors were encountered: