Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75540

Point HOME directory to /data/db for the official containers

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Server Development Platform
    • Fully Compatible
    • ALL

    Description

      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.

      Attachments

        Activity

          People

            alex.neben@mongodb.com Alex Neben
            sebastian.laskawiec@mongodb.com Sebastian Laskawiec
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: