我创建了 docker-compose.yml 来创建 MongoDB 容器:
version: '3'
services :
mongo:
image: mongo:4.2.0
command: mongod --wiredTigerCacheSizeGB 1.5
volumes:
- d:/datadir/mongo:/data/configdb
ports:
- "27018:27017"
我限制了wireTiger缓存。但是在我进行升级
后进入容器中的/etc/
目录时,找不到mongo.config文件?
root@038321c42774:/# ls -a /etc/
. apt debconf.conf fstab gss issue ldap logrotate.d networks passwd rc2.d resolv.conf shadow- sysctl.conf
.. bash.bashrc debian_version gai.conf host.conf issue.net legal lsb-release nsswitch.conf passwd- rc3.d rmt shells sysctl.d
.pwd.lock bindresvport.blacklist default group hostname kernel libaudit.conf machine-id opt profile rc4.d securetty skel systemd
X11 ca-certificates deluser.conf group- hosts ld.so.cache localtime mke2fs.conf os-release profile.d rc5.d security ssl terminfo
adduser.conf ca-certificates.conf dpkg gshadow init.d ld.so.conf logcheck mongod.conf.orig pam.conf rc0.d rc6.d selinux subgid timezone
alternatives cron.daily environment gshadow- inputrc ld.so.conf.d login.defs mtab pam.d rc1.d rcS.d shadow subuid update-motd.d
root@038321c42774:/#
有一个 mongod.conf.orig
,但是 mongod.conf
在哪里?--wiredTigerCacheSizeGB 1.5
存储在哪里?相关的 IT 技术内容。
docker-compose up -d --build
,但是我在 etc 目录下再次没有看到配置文件 https://paste.ubuntu.com/p/9JJg4HDrvM/ @LinPy - Cyrus the Great