In case you forget the database password in Docker only environments, reset it so you can access, or upgrade, the DB.
Take these steps to reset the password:
1. Access your DB,
# docker exec -it <> /bin/bash
2. Log in as
3. Connect to the database server
4. Change the user password,
# ALTER USER with password '';
You should now be able to access your database with the new password.
Did you find it helpful?Send feedback