-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How could my postgres user password get changed or lost? #896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's possible that because the container is exposed to the Internet and has a weak password that it could have been compromised. #817 But there's nothing inherent to the image or Postgres itself that would change authentication credentials automatically |
Is there any easy way to reset it outside of destroying everything? Right now I have to run "docker system prune" and rebuild everything to get it to work again, but I lose the state of my database. |
You could try a workaround to get passwordless access by editing I would also check running processes in the container to see if there's anything that doesn't belong (you'd want the |
Definitely drop the (Also, as @wglambert mentioned, make sure they haven't taken anything sensitive or left anything nefarious. Though if they added anything to the postgres container outside of the volume, then a replacing it with of a new container using the same volume would delete all that). |
Going to close since this seems resolved and isn't an issue with the image If you want further help you could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow |
My postgres container will build and fire up properly and work for a couple days or so but then randomly I'll start getting
"password authentication failed for user "postgres", Password does not match for user "postgres""
My docker-compose:
How is that possible? It has to do with something in the pgdata dir correct?
The text was updated successfully, but these errors were encountered: