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

Don't pass --user uid by default

XMLWordPrintable

      When using an image docker prepared for a specific user, the plugin overrid the default user by the jenkins host uid, and make error because the uid has not right to make some command and has no user in the container.

      docker image are used to made a "test&ci" environment for dev.
      But cause of that, they can't no more launch command like "adduser --uid ${uid} jenkins" or ssh, because the id is not recognized, it make at best a "permission denied" at worst an "unknown uid ${uid}: who are you?" message into the container

      check "privileged mode" doesn't help and defining "jenkins" in the group field, seems like, just skip the bash script step (doing nothing)

      please add --user option in the exec command only if field is filled or checked, otherwise just let the container run with the default user configured in the docker file

            Unassigned Unassigned
            daniel_b Daniel Buteau
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: