Skip to content

Utilize "initdb" functionality better to allow "POSTGRES_INITDB_ARGS=--auth-local=md5" #493

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

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

tianon
Copy link
Member

@tianon tianon commented Sep 6, 2018

This also closes a slight bug we've had previously where the "postgres" user is always created (now we only create the user specified via the environment variables).

The one catch is that you must specify both POSTGRES_USER and POSTGRES_PASSWORD if you want to use --auth-local=md5 (which is honestly kind of expected -- if you want your local lines to use md5 auth, your local users have to have passwords in order to connect locally too).

Closes #280

…--auth-local=md5"

This also closes a slight bug we've had previously where the "postgres" user is _always_ created (now we only create the user specified via the environment variables).
@deinspanjer
Copy link

👍

@yosifkit yosifkit merged commit 0aff40c into docker-library:master Sep 7, 2018
@yosifkit yosifkit deleted the auth-local branch September 7, 2018 20:43
tianon added a commit to infosiftr/stackbrew that referenced this pull request Sep 7, 2018
- `docker`: 18.09.0-ce-beta1
- `drupal`: 8.6 GA (docker-library/drupal#132)
- `mongo`: update 3.6 to Debian Stretch (docker-library/mongo#301)
- `postgres`: use `initdb` more directly to allow `--auth-local=md5` (docker-library/postgres#493)
ianharrier added a commit to ianharrier/docker-jira that referenced this pull request Sep 12, 2018
ianharrier added a commit to ianharrier/docker-confluence that referenced this pull request Sep 12, 2018
ianharrier added a commit to ianharrier/docker-bitbucket that referenced this pull request Sep 12, 2018
ianharrier added a commit to ianharrier/docker-bamboo that referenced this pull request Sep 12, 2018
geoknee added a commit to statechannels/statechannels that referenced this pull request Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot create a database with --auth-local=md5
3 participants