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

Allow easy naming of docker/dockerfile agent containers

      Currently agent containers get assigned random names by docker. It would be nice to have them named according to the Jenkins build name.

      Possible workaround (not tested):

         agent {
           docker {
              image 'foo'
              args "--name $currentBuild.displayName"
          }
        }
      

          [JENKINS-42466] Allow easy naming of docker/dockerfile agent containers

          Peter Leibiger created issue -

          Jose Raya added a comment -

          +1

          Jose Raya added a comment - +1
          James Dumay made changes -
          Epic Link New: JENKINS-45381 [ 183541 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Rank New: Ranked lower

          Andrew Bayer added a comment -

          You can pass whatever you want in args but we're not going to set up any default logic there. Sorry.

          Andrew Bayer added a comment - You can pass whatever you want in args but we're not going to set up any default logic there. Sorry.
          Andrew Bayer made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Liam Newman added a comment -

          Bulk closing resolved issues.

          Liam Newman added a comment - Bulk closing resolved issues.
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            abayer Andrew Bayer
            pleibiger Peter Leibiger
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: