更新时间:2022-11-08 GMT+08:00
分享

更新镜像

使用update命令更新当前项目中的某个镜像仓库的描述信息或者类型。

命令结构

health docker update <project-name/image-name> [flags]
表1 参数说明

参数

简写

是否必选

说明

project-name

要更新的镜像的源项目名称,不填写时默认为当前所在的项目。

image-name

要更新的镜像名称。

--type

-t

镜像类型,只支持APP或者NOTEBOOK。

--description

-d

镜像描述。当描述中带有空格时,需要添加引号来获取完整的描述信息。

--chip

-c

镜像芯片类型,只支持ARM或者X86。

--project

指定项目名。未填写则使用配置文件中的项目名。

命令示例

  • Linux
    ./health docker update lmx-project-01/demo-image --type APP --description 'this is a demo'
  • Windows
    health docker update lmx-project-01/demo-image --type APP --description "this is a demo"
  • 不填写项目名时,若当前所在项目是lmx-test-01,则执行如下命令后会更新当前项目中源项目为lmx-test-01的镜像demo-image的类型。
    health docker update demo-image --type APP --chip ARM
    # 执行成功返回结果如下
    update image successfully!
分享:

    相关文档

    相关产品