Skip to content
Discussion options

You must be logged in to vote

bindPort=7000
proxyBindAddr="127.0.0.1"

Just a wild guess, does it work if you use

proxyBindAddr="0.0.0.0"

?

The reasoning is that 127.0.0.1 inside the container is not the same as 127.0.0.1 on the host when using rootless podman with pasta.

Here is an example:

Test 1: using --bind 127.0.0.1 fails

$ podman run --rm -p 127.0.0.1:8000:8000 -d --name test --replace docker.io/library/python python3 -m http.server --bind 127.0.0.1 8000
f453eeccf0aa0d4e39c77ed3b8851ee85968844efef461c662e05bc133cbeda9
$ curl 127.0.0.1:8000
curl: (56) Recv failure: Connection reset by peer

Test 2: using --bind 0.0.0.0 succeeds

$ podman run --rm -p 127.0.0.1:8000:8000 -d --name test --replace docker.io/library…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Onotot
Comment options

Comment options

You must be logged in to vote
3 replies
@Onotot
Comment options

@eriksjolund
Comment options

@Onotot
Comment options

Answer selected by Onotot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants