Replies: 1 comment 2 replies
-
Do you run as root or rootless? Do you use docker-compose or podman-compose? Using network mode host is very likely not what you want. It just runs in your host network namespace. Specifying ports with host does not make sense. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Still trying to get real visitor IP from proxied container through NPM :/
Original
I'm trying to set up podman with NPM and Nextcloud. I'm having a hard time with podman or containers complaining about permissions but in the end it's a good thing...
With nextcloud, when I get a 500 error the IP shown is the IP of a container (quite hard to find which IP belongs to which container without inspecting each one of them):
One suggestion that came up online was to use NPM with
network_mode: host
, but podman complains because there is multiple networks in the compose file.Am I trying to set this up wrong? I want the ease of using
container_name:port
inside NPM and not have to worry about internal IPs.I already have to expose all the ports I want, I thought at first I could just to
ncweb:80
without exposing any ports to the host machine, but I guess this is a tradeoff of rootless and the ports need to be exposed.Error is
Error: cannot set multiple networks without bridge network mode, selected mode host: invalid argument
I'm new to podman and I know it isn't a drop in replacement for docker, although it could be true if I'd run it 100% rootfull. The docs and people's suggestion for an issue are often times for a different version or with using a whole stack of softwares.
I'm thinking about running Yacht rootfull and simply give this a try, but that's the easy way out 😂
Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions