You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I run an apache container and bind it to the IPv4 localhost, I can hit it
$ podman run --rm -p 127.0.0.1:8080:80/tcp docker.io/library/httpd
$ curl localhost:8080 # this works
I can exec in and see that it bound a tcp6 socket
root@cbf500dfaa87:/usr/local/apache2# netstat -tnlp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 :::80 :::* LISTEN 1/httpd
and outside, I have pasta
$ netstat -tnlp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 129904/pasta
I'm running a docspell container
$ podman run --rm -v ./docspell.conf:/opt/docspell.conf -p 127.0.0.1:7880:7880 docspell/restserver /opt/docspell.conf
nothing changes inside the container but now I'm able to hit it from outside
$ netstat -tnlp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 :::7880 :::* LISTEN 131325/pasta
$ curl localhost:7880 # this works now
I also tried telling docspell to bind to only podman's IPv4 address
docspell.server {
bind.address = "10.0.205.154"
}
this is... pretty weird?
$ podman exec -it docspell-rest bash
351dc1d57e7b:/opt# netstat -tnlp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 ::ffff:10.0.205.154:7880 :::* LISTEN 1/java
really no idea what's going on there. doesn't work, though
the wrinkle here is that I'm running wireguard on this server and I'd like to hit docspell over wireguard. that's an IPv4-only interface, so I want
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a debian system with IPv4 and IPv6 connectivity running podman 5.6.1 and passt_0.0~git20250919.623dbf6-1_arm64
$ podman network inspect podman "ipv6_enabled": false,
if I run an apache container and bind it to the IPv4 localhost, I can hit it
$ podman run --rm -p 127.0.0.1:8080:80/tcp docker.io/library/httpd $ curl localhost:8080 # this works
I can exec in and see that it bound a tcp6 socket
root@cbf500dfaa87:/usr/local/apache2# netstat -tnlp Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 :::80 :::* LISTEN 1/httpd
and outside, I have pasta
$ netstat -tnlp Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 129904/pasta
I'm running a docspell container
and I've configured https://docspell.org/docs/configure/bind/ in
docspell.conf
it binds to an IPv4 socket (proto isn't tcp6) but it sure looks like an IPv6 address to me
however, pasta hangs if I try to
curl
it outside the containerif I change the invocation to
7880:7880
, then everything works, but now I'm exposing this port to the internetif I tell pasta I want ipv4-only,
I still get some inet6 addresses (I have lost IPv6 connectivity) and the bind looks the same
and I'm still not able to hit it outside the container
one really odd thing is that telling pasta to bind to IPv6 on the host works for some reason?
$ podman run --rm -v ./docspell.conf:/opt/docspell.conf --network pasta:--ipv4-only -p '[::]:7880:7880' docspell/restserver /opt/docspell.conf
nothing changes inside the container but now I'm able to hit it from outside
I also tried telling docspell to bind to only podman's IPv4 address
this is... pretty weird?
really no idea what's going on there. doesn't work, though
the wrinkle here is that I'm running wireguard on this server and I'd like to hit docspell over wireguard. that's an IPv4-only interface, so I want
Beta Was this translation helpful? Give feedback.
All reactions