docker tag命令

Docker tag 命令

docker tag 标记本地镜像,将其归入某一仓库

docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]

范例
下面的命令将镜像 python:3.6.5 标记为 twle/python:3.6.5 镜像

[root@localhost ~]# docker tag python:3.6.5 twle/python:3.6.5
root@twle:~# docker images   twle/python:3.6.5
REPOSITORY  TAG    IMAGE ID     CREATED      SIZE
twle/python 3.6.5  29d2f3226daf 3 weeks ago  912MB

猜你喜欢

转载自blog.csdn.net/wt_better/article/details/109600033
今日推荐