Painted-Fox / docker-postgresql

A dockerfile that produces a docker image that runs postgresql.
MIT License
72 stars 57 forks source link

password authentication failed for user "super" #33

Open magick93 opened 9 years ago

magick93 commented 9 years ago

Hi

Ive tried setting up docker-postgresql several times, but always run into the same problem:

psql: FATAL: password authentication failed for user "super" FATAL: password authentication failed for user "super"

I am using the generated password, and retrieve it via 'docker logs postgresql'. I have also tried setting the password when running the container.

I have also tried

RUN echo "host    all    all    0.0.0.0/0    trust" >> /etc/postgresql/9.3/main/pg_hba.conf

and

RUN echo "host    all    all    0.0.0.0/0    ident" >> /etc/postgresql/9.3/main/pg_hba.conf

Neither worked.

Can you help?

Thanks