mongodb-container icon indicating copy to clipboard operation
mongodb-container copied to clipboard

run-mongod ignores rest of arguments

Open hhorak opened this issue 8 years ago • 0 comments

Both, MariaDB and PostgreSQL pass the rest of the run- arguments given to this script by docker run command to the itself:

exec ${MYSQL_PREFIX}/libexec/mysqld --defaults-file=$MYSQL_DEFAULTS_FILE "$@" 2>&1
...
exec postgres "$@"

This allows to change/add some options on the docker run command line or in template without providing whole new configuration. If there are no side effects, we should do it the same in mongodb container.

[1] https://github.com/sclorg/mariadb-container/blob/master/10.1/root/usr/bin/run-mysqld#L35 [2] https://github.com/sclorg/postgresql-container/blob/master/9.5/root/usr/bin/run-postgresql#L28

hhorak avatar Jul 11 '17 21:07 hhorak