更新时间:2025-03-04 gmt 08:00

ma-九游平台

ma-cli image命令支持:查询用户已注册的镜像、查询/加载镜像构建模板、dockerfile镜像构建、查询/清理镜像构建缓存、注册/取消注册镜像、调试镜像是否可以在notebook中使用等。具体命令及功能可执行ma-cli image -h命令查看。

镜像构建命令总览

$ ma-cli image -h
usage: ma-cli image [options] command [args]...
  support get registered image list, register or unregister image, debug image, build image in notebook.
options:
  -h, -h, --help  show this message and exit.
commands:
  add-template, at  list build-in dockerfile templates.
  build             build docker image in notebook.
  debug             debug swr image as a notebook in ecs.
  df                query disk usage.
  get-image, gi     query registered image in modelarts.
  get-template, gt  list build-in dockerfile templates.
  prune             prune image build cache.
  register          register image to modelarts.
  unregister        unregister image from modelarts.
表1 镜像构建支持的命令

命令

命令详情

get-template

查询镜像构建模板。

add-template

加载镜像构建模板。

get-image

查询modelarts已注册镜像。

register

注册swr镜像到modelarts镜像管理。

unregister

取消注册modelarts镜像管理中的已注册镜像。

build

基于指定的dockerfile构建镜像 (只支持modelarts notebook里使用)。

df

查询镜像构建缓存(只支持modelarts notebook里使用)。

prune

清理镜像构建缓存 (只支持modelarts notebook里使用)。

debug

在ecs上调试swr镜像是否能在modelarts notebook中使用 (只支持已安装docker环境的ecs)。

相关文档

网站地图