Replies: 1 comment
-
Is your database server configured to only accept connections from/to a loopback address? In that case, you would need to replace |
Beta Was this translation helpful? Give feedback.
0 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.
-
I'm struggling with setting up a simple connection to my host networks database using Pasta. It works fine when I use the host network setting, but I've red that that one is considered unsecure so i'm hoping to use a better alternative. However unfortunately I've got extremely limited experience with Podman, docker or containerization in general. So help would be greatly appreciated.
In general I think that I have the correct pieces, but either I'm misconfiguring something, or just greatly misunderstanding something. As a note I started with Podman 4.9 (Highest Ubuntu apt-get installed) and went over to 5.3 by building from source, alongside upgrading
crun
&passt
itself to allow for--map-guest-addr
. So I possibly imagine a high likelihood of having missed something in that migration which could be the source of the problem.The problem
Using
I am unable to get a connection to my hosts database. The container with the following log error
If I grep into the hosts, I can see the host.containers.internal inside the container

So other than that I have no idea what is missing.
Podman info
Ip addr
Obfuscated Server ip. Docker0 is presumably left behind by previously installed docker extension.
IP Route
Obfuscated Server ip. 172.17.0.0/16 is presumably left behind by previously installed docker extension.
Network inspect
Beta Was this translation helpful? Give feedback.
All reactions