[SERVER-75540] Point HOME directory to /data/db for the official containers Created: 31/Mar/23 Updated: 29/Oct/23 Resolved: 11/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sebastian Laskawiec | Assignee: | Alex Neben |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Server Development Platform
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
Problem StatementWhen 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 proposalThe 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. |