知识卡片
镜像标签指向目标仓库
将本地镜像加上目标容器仓库的地址和版本标签,认证后推送,部署端才能按该地址拉取。标签帮助定位构建版本,但可变标签可能被重写;交付时还应保存对应镜像摘要以核对实际内容。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 13 章《Dockerizing microservice APIs》(源文件:_epub-src/OEBPS/Text/13.htm)
- 结论依据:原文说明给镜像加上 ECR 仓库地址的标签、登录并推送,支持构建物的仓库交付流程。
- 原始内容:To publish our Docker build to ECR, we need to tag our build with the name of the ECR repository. Get hold of the repository.repositoryArn property of the previous command’s output (in bold), and use it to tag the