-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Development Platform
-
Fully Compatible
-
ALL
Problem Statement
When running the official Community Server image on Kubernetes without root permissions and with Security Context preventing writing files to the root filesystem (so that files can be written only to volumes), the mongosh complains about not being able to write to root /.
Solution proposal
The Docker Community came up with a simple fix that might be found here: https://github.com/docker-library/mongo/blob/2a7ebf4d0dd1499409dc209443c86846f0c96510/6.0/Dockerfile#L107-L109
I highly recommend to do the same for our images.