为什么在 Container Registry中标记映像时发生清单类型错误?
尝试在 IBM Cloud® Container Registry中标记映像时,收到清单类型错误: CRI0302E The manifest type for this image is not supported for tagging.
您尝试标记映像,但收到以下清单错误消息: CRI0302E The manifest type for this image is not supported for tagging. To find out about supported manifest types, see https://cloud.ibm.com/docs/Registry?topic=Registry-ts_index#ts_manifest_error_type
不支持清单类型。
要解决此问题,请完成以下步骤:
-
运行以下命令调出试图标记的图片,其中
SOURCE_IMAGE
是源图片名称:docker pull SOURCE_IMAGE
-
运行以下命令,在上一步提取的本地镜像副本上打上标记,其中
TARGET_IMAGE
是新镜像的名称:docker tag SOURCE_IMAGE TARGET_IMAGE
-
通过运行以下命令,推送上一步中已标记的映像:
docker push TARGET_IMAGE