Docker Tag Command
docker tag: Tag a local image and include it in a repository.
Syntax
docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
Example
Tag the image ubuntu:15.10
as tutorialpro/ubuntu:v3
.
root@tutorialpro:~# docker tag ubuntu:15.10 tutorialpro/ubuntu:v3
root@tutorialpro:~# docker images tutorialpro/ubuntu:v3
REPOSITORY TAG IMAGE ID CREATED SIZE
tutorialpro/ubuntu v3 4e3b13c8a266 3 months ago 136.3 MB