I am currently looking at percona and mongodb enterprise. I am wanting to test the docker image supplied at dockerhub and test the encryption at rest functionality as well as some other functions.
I am trying to find all the options I can pass the image at runtime I can see the examples in the dockerhub page like
–storageEngine=RocksDB so this looks like I can simply pass mongo.conf parameters to the image is this correct.
so would enabling encryption be as simple as --enableEncryption=True etc. has anyone set this up via the docker image I cant see a list of all options so if you can point me to the documentation that would be great.
You could pass the arguments for mongod in docker while setting up the container like you pass arguments to mongod in command prompt usually. For example, to run the mongodb with encryption, you need PSMDB 3.6.8 or more. So you can do the following:
docker pull percona/percona-server-mongodb:3.6.10
docker run -it --rm percona/percona-server-mongodb:3.6.10 mongod --help
The above command will show you the list of arguments available for you to pass in mongod. If you want encryption, then you need to pass the key file as well for the mongod and also the key idea here for encryption is to keep the data encrypted and in separate partition. So you can map the local partition with docker partition as well. I have shown you a simple example below to start a database: