Why can’t my container access MariaDB on the same VPS?

0
1
Asked By TechyTaco123 On

I'm running MariaDB on my VPS and can access it remotely from my homelab without any issues. However, when I try to connect to the same database from a container on that same VPS, it fails. Even though I can see that the port is open when checking remotely, it appears filtered when I run a connection test from inside the container. I've ensured that my database is set to bind to all interfaces, but that doesn't seem to help. Does anyone have any suggestions or insights on why this might be happening?

1 Answer

Answered By CuriousCoder99 On

It sounds like your setup might have some network configuration issues. Just to clarify, you have both MariaDB and the Docker container running on the same VPS, right? It would help if you could share more specific details about how you verified the port status and what commands you used to check the connectivity.

TechyTaco123 -

Yes, both MariaDB and Docker are on the VPS. I connected from my PC just fine, but it's not working from within the container. I ran an nmap scan from the container, and it said the port was filtered, while my PC showed it as open.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.