Running MongoDB from a container

Asked in parallel in https://stackoverflow.com/questions/65090397/running-mongodb-within-a-singularity-container

I created a Singularity container from which I want to run MongoDB. Installing worked, but when I try to start the server with systemctl start mongod, this results in the output

Running in chroot, ignoring request: start

Are there some additional configurations I need to do in my container setup?
Or in configuring MongoDB?
I’m not familiar in dealing with chroot.

The issue was solved on StackOverflow. My mistake was to use systemctl, I replaced the call by directly calling /usr/bin/mongo "$@".

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.