Skip to content

Ports are not forwarded using podman 6 #41204

Description

@windsource

Windows Version

Microsoft Windows [Version 10.0.26200.8875]

WSL Version

2.7.11.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.18.33.2-microsoft-standard-WSL2

Distro Version

Manjaro

Other Software

podman version 6.0.1

Repro Steps

Run in WSL2:

sudo podman run -it --rm -p 8081:80 docker.io/nginx
curl http://localhost:8081

Expected Behavior

The curl command (in WSL2) succeeds and in the browser on windows you can open http://localhost:8081.

Actual Behavior

The curl commands (in WSL2) succeeds but in the browser you cannot open http://localhost:8081 but get ERR_CONNECTION_REFUSED.

The problem occurs only with podman 6. Podman 4.x and 5.x work fine. I have installed podman in Manjaro with sudo pacman -S podman.

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions