补充重命名镜像功能.
Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
parent
94a5188599
commit
b1c16e3450
|
@ -61,10 +61,13 @@ docker container rm <container id>
|
|||
### 镜像操作
|
||||
|
||||
```sh
|
||||
# image name 为 repository:tag
|
||||
# 获得镜像信息
|
||||
docker image ls -a
|
||||
# 获得镜像id
|
||||
docker image ls -a -p
|
||||
# 重命名镜像
|
||||
docker tag <image name/id> <repository>:<tag>
|
||||
# 删除镜像
|
||||
docker image rm <image name/id>
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue