Skip to content

Support accessing Podman services from Windows LAN  #19890

Description

@ThomasVitale

Is your enhancement related to a problem? Please describe

When running Podman Desktop on Windows, containers running in the Podman machine are accessible from the Windows host from localhost. However, because of how WSL2 works (see details), those services are not accessible when using the PC domain name or IP address (e.g. ..local).

Windows requires to run the CLI netsh interface portproxy for each port we want to access via PC domain name or IP address.

The forward needs to be towards the WSL2 IP address, which is dynamic and changes on each reboot. So every time a Windows machine is started, before being able to consume Podman service, the Windows proxy need to be reconfigured.

Describe the solution you'd like

I would like Podman Desktop to transparently take care of setting up the proxy in Windows to allow accessing Podman containers from the PC domain name or IP address. That's something that Docker Desktop does.

Describe alternatives you've considered

No real alternative here. Would it be possible to implement a Podman exception that intercepts container events and configures the proxy dynamically?

Additional context

No response

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.machinewindowsissue/bug on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions