Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31944

Docker commandline passed wrong user id when executing.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When docker is invoked it is passed the userid of the jenkins user on the host machine.

      This breaks things because the local user doesnt actually exist (PAM module checks fail for example) and doesnt match the environment variables for the username. It would be better to use the username (easymode) or explicitly create the jenkins user with the userid of the host.

        Attachments

          Issue Links

            Activity

            Hide
            ndeloof Nicolas De Loof added a comment -

            Using the host user is required to prevent permission issue later accessing the workspace.
            If you know a concrete sample to require the user to be registered some way inside container, please let us know with more details to help reproducing and looking for a fix.

            Show
            ndeloof Nicolas De Loof added a comment - Using the host user is required to prevent permission issue later accessing the workspace. If you know a concrete sample to require the user to be registered some way inside container, please let us know with more details to help reproducing and looking for a fix.
            Hide
            weakcamel Waldek M added a comment -

            Just for the record: a sample has been provided in https://issues.jenkins-ci.org/browse/JENKINS-47026

            Show
            weakcamel Waldek M added a comment - Just for the record: a sample has been provided in https://issues.jenkins-ci.org/browse/JENKINS-47026

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                sleary78 Stephen Leary
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: