Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16323

Use the User ID in the Dockerfile instead of the Username

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 8.11.2, 9.1, main (10.0)
    • Docker
    • None

    Description

      There is a big trend towards using non-root Docker images. Luckily for us, Solr already uses a non-root user in its Docker image, solr:solr (8983:8983). However when specifying the "USER" at the end of the Dockerfile, it uses in the name instead of the ID. Therefore when certain security features are enabled, such as in Kubernetes, these tools cannot determine if the user "SOLR" is root or non-root. If we change to using the User ID, then these tools will begin to work.

      Attachments

        Activity

          People

            houston Houston Putman
            houston Houston Putman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m