on-internet
← Community

Postgres docker error: FATAL: password authentication failed for user

Stack Overflow ·

I created a Postgres container with docker sudo docker run -d \ --name dev-postgres \ -e POSTGRES_PASSWORD=test \ -e POSTGRES_USER=test \ -v ${HOME}/someplace/:/var/lib/postgresql/data \ -p 666:5432 \ postgres I give the Postgres instance test as a username and password as specified in the doc. The Postgres port (5432) inside the container is linked to my 666 port on the host. Now I want to try this out using psql psql --host=localhost --port=666 --username=test I'm prompted to enter the password for user test and after entering test, I get psql: error: FATAL: password authentication failed fo

Comments

Sign in or sign up to comment and upvote.

No comments yet.