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

Option to disable automatic tagging of docker images with dockerfile agents

XMLWordPrintable

      When specifying dockerfile as agent in a jenkins pipeline e.g. :

      pipeline {
          agent {
              dockerfile {
                  additionalBuildArgs '-t image_name:latest'
                  label 'docker'

      The docker pipeline plugin executes the following to build the image:

      docker build -t 0c5e9a24b881c7c890b38ceb89cf26c5713e2c1e -t image_name:latest -f Dockerfile .

      How can I disable automatically tagging the image? In this case I would like to have just one tag (image_name:latest).

      Thanks a lot in advance!

            Unassigned Unassigned
            jul8234 Julien Siems
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: