补充重命名镜像功能.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2019-12-19 11:43:20 +08:00
parent 94a5188599
commit b1c16e3450
1 changed files with 3 additions and 0 deletions

View File

@ -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>
```