Replies: 4 comments 4 replies
-
With Podman built from the git main branch combined with a recent Pasta version you could specify host.containers.internal as hostname. I built the Podman git main branch some weeks ago (git commit: 649730c).
about the systemFedora CoreOS 42.20240830.91.0
ReferencesIf you want to use an older Podman version you could try specifying the pasta option --map-guest-addr Extra tip: If you want to run Caddy with socket activation take look here: https://github.com/eriksjolund/podman-caddy-socket-activation |
Beta Was this translation helpful? Give feedback.
-
Okay I just might wait for podman 5.3 then. I just wonder, would I have to call a port when trying to access a website? That is not a long term solution either :/ EDIT: I am just a little confused about your step 4 curl commands :D |
Beta Was this translation helpful? Give feedback.
-
I managed to get this work by adding "--network pasta" to both of the containers and reverse proxying to host.containers.internal:7000. This is on Podman 5.2.3 for future reference. Without specifying --network pasta this didn't work even though by inspecting both of them they defaulted to pasta anyway? Does the host.containers.internal have some security draws backs? |
Beta Was this translation helpful? Give feedback.
-
I tried it out the --map-guest-addr solution on Fedora CoreOS 41.20241006.1.1 Podman version:
Side note: podman 5.3.0 (not yet released) will support host.containers.internal and host.docker.internal out of the box. (Podman 5.3.0 will use --map-guest-addr under the hood) |
Beta Was this translation helpful? Give feedback.
-
I have a test container running with pasta on host (microOS) 192.168.1.220 as follows:
Which I can access from another computer (same network as microOS) with:
curl 192.168.1.220:7000
I have Caddy running with pasta also on microOS host as:
With Caddyfile:
But the test.example.com doesn't open the banner page, just a blank page. I had a working installation of this with slirp4netns, but I wan't to try and learn pasta insead.
I suspect the problem lies with the reverse proxy address/ports.
Can anybody give me a hand with this?
Beta Was this translation helpful? Give feedback.
All reactions