Hello @Sergey_Zelenov1 ,
as you can see there is this flag:
- --config=/etc/mongodb-config/mongod.conf
This is where the configuration is stored.
If you exec into the container, you would see the file has these parameters and they are actually applied.
This is in my container:
$ cat /etc/mongodb-config/mongod.conf
systemLog:
quiet: true
replication:
oplogSizeMB: 500
As for rs.printReplicationInfo() and the size not changing, have you tried to run replSetResizeOplog? As per mongodb docs:
Once the
mongodhas created the oplog for the first time, changing thereplication.oplogSizeMBoption will not affect the size of the oplog. To change the maximum oplog size after starting themongod, usereplSetResizeOplog.replSetResizeOplogenables you to resize the oplog dynamically without restarting themongodprocess. To persist the changes made usingreplSetResizeOplogthrough a restart, update the value ofoplogSizeMB.