When I am pushing new image to repo I would like it to have two tags for example 0.2
and latest
. This would allow to always pull latest image version b
There are valid reasons for having multiple tags on an image (see OP) but if you are wanting to add tags for informational purposes, you may be better off with image labels.
Docker labels are inside the image rather than applied to it in the registry. This means the labels are immutable and always get copied with the image.
Label Schema defines a list of interoperable labels for things like version
, vcs-ref
, build-date
and others.