mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
### Background Newer upstream PostgreSQL Docker images, now require a password for use. If you were previously using passwordless access to a PostgreSQL DB, it will likely fail with an error. This linked GitHub issue showcases the error: https://github.com/docker-library/postgres/issues/681 ### Solution The postgres docker page gives instructions on how to use the new image : https://hub.docker.com/_/postgres There seems to be two different options we can take here : Option 1 - Implement a password using the environment variable Option 2 - Revert back to old behavior of having no password requirement ### Thoughts Based on the team members remark it looks like increased security was the major reason for this breaking changing happening in a minor update. Refer to this comment : https://github.com/docker-library/postgres/issues/681#issuecomment-586517154 As such I opted to use Option 1 here in this change as increased security of a DB is generally a win for every one in most cases.