docker tag

[root@docker nginx]# docker tag -h
Flag shorthand -h has been deprecated, please use —help
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

  1. [root@docker nginx]# docker tag nginx:v1.17.6 liweiming0611/nginx:v1.17.6
  2. [root@docker nginx]#
  3. [root@docker nginx]# docker images
  4. REPOSITORY TAG IMAGE ID CREATED SIZE
  5. cd latest 2acb7d4366b0 16 minutes ago 126MB
  6. nginx v1.17.6 2acb7d4366b0 16 minutes ago 126MB
  7. liweiming0611/nginx v1.17.6 2acb7d4366b0 16 minutes ago 126MB
  8. debian buster-slim e1af56d072b8 2 days ago 69.2MB
  9. auto-jenkins latest d83c74abb6ca 7 weeks ago 734MB
  10. docker latest cf85f29ec76f 2 months ago 216MB
  11. tomcat latest 882487b8be1d 2 months ago 507MB
  12. centos 6 d0957ffdf8a2 9 months ago 194MB
  13. centos latest 9f38484d220f 9 months ago 202MB
  14. [root@docker nginx]#