菜鸟笔记
提升您的技术认知

Docker tag 命令

阅读 : 2520

Docker 命令大全

Docker tag 命令

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

语法

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

实例

将镜像ubuntu:15.10标记为 coonote/ubuntu:v3 镜像。

root@coonote:~# docker tag ubuntu:15.10 coonote/ubuntu:v3
root@coonote:~# docker images   coonote/ubuntu:v3
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
coonote/ubuntu       v3                  4e3b13c8a266        3 months ago        136.3 MB

Docker 命令大全