Streamline your workflow with the new MCP server for Red Hat product documentation.Connect your AI tools and LLMs directly to live Red Hat product documentation. Connect now.
6.7.4. 更新镜像流标签
您可以更新标签以反映镜像流中的另一标签。
流程
更新标签:
$oc tag <image-name:tag><image-name:latest>
例如,以下命令更新了 latest 标签,以反映镜像流中的 3.6 标签:
$oc tag python:3.6 python:latest
输出示例
Tag python:latest set to python@sha256:438208801c4806548460b27bd1fbcb7bb188273d13871ab43f.