更新时间:2024-04-30 GMT+08:00

取消注册ModelArts镜像管理中的已注册镜像

使用ma-cli image unregister命令将注册的镜像从ModelArts中删除。

$ ma-cli image unregister -h
Usage: ma-cli image unregister [OPTIONS]

  Unregister image from ModelArts.

  Example:

  # Unregister image
  ma-cli image unregister --image-id=xx

  # Unregister image and delete it from swr
  ma-cli image unregister --image-id=xx -d

Options:
  -i, --image-id TEXT     Unregister image details by image id.  [required]
  -d, --delete-swr-image  Delete the image from swr.
  -C, --config-file PATH  Configure file path for authorization.
  -D, --debug             Debug Mode. Shows full stack trace when error occurs.
  -P, --profile TEXT      CLI connection profile to use. The default profile is "DEFAULT".
  -h, -H, --help          Show this message and exit.
表1 参数说明

参数名

参数类型

是否必选

参数说明

-i / -image-id

String

需要取消注册的镜像ID。

-d / --delete-swr-image

Bool

取消注册后同步删除SWR镜像开关,默认关闭。

示例

取消ModelArts镜像管理中已注册镜像。

ma-cli image unregister --image-id=xx