-
Improvement
-
Resolution: Unresolved
-
Minor
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!