Can't run postgis client container
laurentateegle opened this issue · 1 comments
laurentateegle commented
Hello,
Thanks in advance for your help and congrats for all the achievements you make. Postgres/postgis is amazing, moreover with docker capabilities
I have followed the step by step installation guide as mentionned here :
https://registry.hub.docker.com/r/postgis/postgis/
When trying to run a client container using
docker run -it --rm --network some-network postgis/postgis psql -h some-postgis -U postgres
Whereas I have set the POSTGRES_PASSWORD to run the server container, I get the message:
"Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
connections without a password. This is not recommended.
See PostgreSQL documentation about "trust":
https://www.postgresql.org/docs/current/auth-trust.html"
I have tried to go through a docker compose to set POSTGRES_PASSWORD as an env variable. It does make any difference.
Could you help me ?
Thanks in advance
LaurentGoderre commented
@laurentateegle you might have better luck asking at https://github.com/postgis/docker-postgis/issues