docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.14k stars 1.11k forks source link

Unable to run postgres:12.17 in gh actions #1174

Closed indiVar0508 closed 6 months ago

indiVar0508 commented 7 months ago

hi

i was trying to use postgres:12.17 in gh actions, but not able to start service in my job i get below shown error while starting action job service container image I see that in local in docker the container restarts automatically but same is not happening for github service container. image

        options: >-
          --health-cmd "pg_isready -U $$POSTGRES_USER -h $$(hostname -i)"
          --health-interval 60s
          --health-timeout 30s
          --health-retries 8

This is the Health command i am using.

indiVar0508 commented 7 months ago

if i remove the healthcheck command to be only "pg_isready" it works, but then i get error message mentioned in https://github.com/docker-library/postgres/issues/838