镜像命令:image
命令
| 命令 | 用法 | 说明 |
|---|---|---|
list | bohr image list [flags] | 查询私有镜像或公开镜像分类 |
search | bohr image search <keyword> | 搜索公开镜像 |
get | bohr image get <id> | 查看镜像详情 |
pull | bohr image pull <image_address> [flags] | 将镜像拉取到本地 Docker |
delete | bohr image delete <imageId>... | 删除私有镜像 |
查询、搜索与查看
bohr image list
bohr image list --type "DeePMD-kit" -o json
bohr image search pytorch
bohr image get 4567
不指定 --type 时,list 返回私有镜像。公开分类名称由平台提供,可能变化;不知道分类时请使用 search。
拉取到本地 Docker
bohr image pull registry.dp.tech/dptech/deepmd-kit:3.0.0b3-cuda12.1
执行前必须启动本地 Docker daemon。pull 支持 --timeout,默认 30m。CLI 会自动登录 Bohrium 镜像仓库,不会输出仓库凭证。
删除
bohr image delete 123 234
只能删除有权限管理的镜像。删除是破坏性操作,需要确认。