-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dial tcp 127.0.0.1:5432: connect: connection refused #199
Comments
Hey @ifeelingz, can you elaborate a little bit more? As far I understand you starting new postgres container inside gh-runner, but then you trying to access it via public IP of machine, on which docker with runner works? |
it works for me too. But it's more like workaround than solution. Every job with such database service has to be exposed on host machine, which makes it much harder to scale (both vertically and horizontally). @myoung34 should we reopen the issue? |
To be honest I still dont understand the issue but this is more configuration than anything else. the runner has nothing to do with the networking configuration and is different per orchestrator. For all I know the issue here is solely related to docker-compose |
It looks like the solution was to expose the port on the docker host interface? I'm pretty sure |
IE if you run something on This behavior is very specific to docker itself and not other CRI's |
Thanks for your feedback. Although I understand that it's not specific to this repo, some lost souls like me who had workflows on self-hosted runner without docker and now have this issue would be greatly appreciate it if you could point in the right direction. |
Has anyone got this to work without using the 172 ip. I tried that ip and it still getting connection refused. Although I am not using a service for a docker compose up command |
If youre using docker 4 windows or mac it could be different, but it will be whatever the gateway is |
dial tcp 127.0.0.1:5432: connect: connection refused
"docker-github-actions-runner" works great. But I got a problem when I simulate the Database and it can't connect.
Meanwhile, if I install it on Ubuntu without Docker, it works fine.
How should I fix this? Can recommend me ?
Best Regards.
The text was updated successfully, but these errors were encountered: