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