Attaching to container shows error:
FATAL: password authentication failed for user "postgres"
DETAIL: User "postgres" has no password assigned.
Only thing i remember is doing docker-compose a bunch of times on my deployment machine, same docker-compose in my dev machine and everything works fine, I already tried removing previous volumes but with no luck. Any help is appreciated thanks.
Using latest version.
For anyone having the same issue, I fixed it by creating a new volume in my docker-compose. Pretty weird bug.
Thanks, just came across this same issue now...
Actions tried
docker volume prunedocker-compose down && docker-compose up --force-recreatepostgres:9.6-alpine instead of postgres:9.6.4POSTGRES_PASSWORD setFinally, simply recreating the volume by renaming the bindings worked. Not sure of the root cause though... caching on some level that I didn't clear correctly?
volumes:
- ./docker/db/development:/var/lib/postgresql/data
->
volumes:
- ./docker/db/dev:/var/lib/postgresql/data
Thanks for your tip.
Same issue. Fixed using yjimk and orion's solution.
Most helpful comment
For anyone having the same issue, I fixed it by creating a new volume in my docker-compose. Pretty weird bug.