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

Docker commandline passed wrong user id when executing.

      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.

          [JENKINS-31944] Docker commandline passed wrong user id when executing.

          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.

          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.

          Waldek M added a comment -

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

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

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

              Created:
              Updated:
              Resolved: