docker tag : 标记本地镜像,将其归入某一仓库。
语法
docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
实例
将镜像ubuntu:15.10标记为 runoops/ubuntu:v3 镜像。
root@runoops:~# docker tag ubuntu:15.10 runoops/ubuntu:v3 root@runoops:~# docker images runoops/ubuntu:v3 REPOSITORY TAG IMAGE ID CREATED SIZE runoops/ubuntu v3 4e3b13c8a266 3 months ago 136.3 MB