0

What am I doing:

sudo docker build -t my_service:latest . sudo docker run -p 8000:8000 -d sso_service:latest

I have added my docker IP range 172.17.0.0/16 to pg_hba.conf

I have tried using --network=host with docker run

user8422652
  • 27
  • 1
  • 6
  • Does this answer your question? [Allow docker container to connect to a local/host postgres database](https://stackoverflow.com/questions/31249112/allow-docker-container-to-connect-to-a-local-host-postgres-database) – Harun Yilmaz Jan 17 '22 at 15:15

0 Answers0