Is it possible for image to have multiple tags?

前端 未结 5 414
一整个雨季
一整个雨季 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-02 06:05

    It pushes all the tags, if you dont specify the tags in push command.

    docker tag user/imagename:tag1
    docker tag user/imagename:tag2
    
    docker push user/imagename
    

提交回复
热议问题