I have to keep several copies of production databases serving by a dockerized MongoDB server.
I do NOT want to backup, then to drop, then, when I need it again, to restore it. It is not as quick process as I would want it to be.
But when I keep those DBs online, MongoDB server eats a lot of my host system memory (16Gb total physical RAM).
I would like to detach some specific databases in order to free some memory and attach them again when I need them.
I tried to search the answer with google, but without success.
MongoDB 4.0, LinuxMint 19.3 Tricia