spiegel_podman/cmd
Paul Holzinger 7a6ad9db58
cmd/rootlessport: handle dual stack sockets right
With podman 6 we switch the main libpod port bind logic used as rootful
over to bind dual stack sockets correctly and no longer default the host
ip to 0.0.0.0.

So -p 8080:8080 should create one dual stack socket that binds all
addresses. While -p 0.0.0.0:8080:8080 -p [::]:8080:8080 should create
two sockets binding v4 and v6 respectively.

Because the go std lib always defaults to dual stack the second case
currently fails with EADDRINUSE which is wrong, so fix that to pass the
right protocol.

This is also how pasta works already so this makes everything consistent
now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit f6527ece2b)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-09-01 15:36:49 +02:00
..
podman docs: clarify podman compose containers.conf table 2026-07-25 10:11:58 +01:00
podman-mac-helper Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
podman-testing Fix staticcheck SA4023 warnings in call.go and sign.go 2026-06-12 09:53:20 +02:00
podman-wslkerninst RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
quadlet Merge pull request #29079 from mvanhorn/fix-quadlet-verify-stderr-logging 2026-07-16 14:38:39 +02:00
rootlessport cmd/rootlessport: handle dual stack sockets right 2026-09-01 15:36:49 +02:00
winpath Fix GOOS=windows prealloc linter warnings 2026-02-11 11:41:11 -08:00