Is it possible for image to have multiple tags?

前端 未结 5 402
一整个雨季
一整个雨季 2021-02-02 05:45

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

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-02 06:04

    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.

提交回复
热议问题