Skip to content

Add Environment Variable for EXTRA_ARGS #391

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

Closed
driverpt opened this issue Dec 14, 2017 · 1 comment
Closed

Add Environment Variable for EXTRA_ARGS #391

driverpt opened this issue Dec 14, 2017 · 1 comment

Comments

@driverpt
Copy link

e.g.: `-e POSTGRES_EXTRA_ARGS="-c 'max_prepared_transactions=100' -c 'max_connections=100'"

@yosifkit
Copy link
Member

This is already available via command (as now mentioned in the docs with docker-library/docs#1095) so an environment variable is not necessary.

$ docker run -d --name some-postgres postgres:10.1 -c 'max_prepared_transactions=100' -c 'max_connections=100'
08f5b3264de1d4124440b4fbc17eb300caa434caf2f33cbbb44ba20a88adbce9
$ docker run -it --rm --link some-postgres postgres psql -h some-postgres -U postgres
psql (10.1)
Type "help" for help.

postgres=# show max_prepared_transactions;
 max_prepared_transactions 
---------------------------
 100
(1 row)

postgres=# show max_connections;
 max_connections 
-----------------
 100
(1 row)

postgres=# 

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

No branches or pull requests

2 participants