docker-tag.1 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .\" Process this file with
  2. .\" nroff -man -Tascii docker-tag.1
  3. .\"
  4. .TH "DOCKER" "1" "APRIL 2014" "0.1" "Docker"
  5. .SH NAME
  6. docker-tag \- Tag an image in the repository
  7. .SH SYNOPSIS
  8. .B docker tag
  9. [\fB-f\fR|\fB--force\fR[=\fIfalse\fR]
  10. \fBIMAGE\fR [REGISTRYHOST/][USERNAME/]NAME[:TAG]
  11. .SH DESCRIPTION
  12. This will tag an image in the repository.
  13. .SH "OPTIONS"
  14. .TP
  15. .B -f, --force=\fItrue\fR|\fIfalse\fR:
  16. When set to true, force the tag name. The default is \fIfalse\fR.
  17. .TP
  18. .B REGISTRYHOST:
  19. The hostname of the registry if required. This may also include the port separated by a ':'
  20. .TP
  21. .B USERNAME:
  22. The username or other qualifying identifier for the image.
  23. .TP
  24. .B NAME:
  25. The image name.
  26. .TP
  27. .B TAG:
  28. The tag you are assigning to the image.
  29. .SH EXAMPLES
  30. .sp
  31. .PP
  32. .B Tagging an image
  33. .TP
  34. Here is an example where an image is tagged with the tag 'Version-1.0' :
  35. .sp
  36. .RS
  37. docker tag 0e5574283393 fedora/httpd:Version-1.0
  38. .RE
  39. .sp
  40. .B Tagging an image for an internal repository
  41. .TP
  42. To push an image to an internal Registry and not the default docker.io based registry you must tag it with the registry hostname and port (if needed).
  43. .sp
  44. .RS
  45. docker tag 0e5574283393 myregistryhost:5000/fedora/httpd:version1.0
  46. .RE
  47. .sp
  48. .SH HISTORY
  49. April 2014, Originally compiled by William Henry (whenry at redhat dot com) based on dockier.io source material and internal work.