-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
As per the docker docs (here --tag), the docker build command's tag option can be specified multiple times to tag an image multiple times.
docker build --tag org/image:t1 --tag org/image:t2 .
[JENKINS-57109] Allow for tag list within docker build arguments
Description |
Original:
As per the docker docs [--tag|https://docs.docker.com/engine/reference/commandline/build/#tag-an-image–t], the docker build command's tag option can be specified multiple times to tag an image multiple times. {code:java} docker build --tag org/image:t1 --tag org/image:t2 . {code} |
New:
As per the docker docs ([(here --tag)|https://docs.docker.com/engine/reference/commandline/build/#tag-an-image%E2%80%93t], the docker build command's tag option can be specified multiple times to tag an image multiple times. {code:java} docker build --tag org/image:t1 --tag org/image:t2 . {code} |
Description |
Original:
As per the docker docs ([(here --tag)|https://docs.docker.com/engine/reference/commandline/build/#tag-an-image%E2%80%93t], the docker build command's tag option can be specified multiple times to tag an image multiple times. {code:java} docker build --tag org/image:t1 --tag org/image:t2 . {code} |
New:
As per the docker docs [(here --tag)|https://docs.docker.com/engine/reference/commandline/build/#tag-an-image%E2%80%93t], the docker build command's tag option can be specified multiple times to tag an image multiple times. {code:java} docker build --tag org/image:t1 --tag org/image:t2 . {code} |
We are facing the same need; currently the work around is to push the same image multiple times with a different tag. This is not ideal since it will compare layers each time and can result in several wasted seconds.
Ideally we'd be allowed to do