1、给本地镜像打一个标签,类似于一个应用的版本;

docker tag 镜像名称:版本号 IP地址/仓库名称/镜像名称:版本号
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

 

例子

把镜像

registry.cn-hangzhou.aliyuncs.com/agility/pause-amd64的3.0版本打标签为3.1版本。
docker tag registry.cn-hangzhou.aliyuncs.com/agility/pause-amd64:3.0
harbor.myk8s.paas.acsservicev360test06-inc.com:80/xyjtest/registry.cn-hangzhou.aliyuncs.com/agility/pause-amd64:3.1

 

相关文章:

  • 2022-02-28
  • 2021-06-13
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
相关资源
相似解决方案