12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- .\" Process this file with
- .\" nroff -man -Tascii docker-tag.1
- .\"
- .TH "DOCKER" "1" "APRIL 2014" "0.1" "Docker"
- .SH NAME
- docker-tag \- Tag an image in the repository
- .SH SYNOPSIS
- .B docker tag
- [\fB-f\fR|\fB--force\fR[=\fIfalse\fR]
- \fBIMAGE\fR [REGISTRYHOST/][USERNAME/]NAME[:TAG]
- .SH DESCRIPTION
- This will tag an image in the repository.
- .SH "OPTIONS"
- .TP
- .B -f, --force=\fItrue\fR|\fIfalse\fR:
- When set to true, force the tag name. The default is \fIfalse\fR.
- .TP
- .B REGISTRYHOST:
- The hostname of the registry if required. This may also include the port separated by a ':'
- .TP
- .B USERNAME:
- The username or other qualifying identifier for the image.
- .TP
- .B NAME:
- The image name.
- .TP
- .B TAG:
- The tag you are assigning to the image.
- .SH EXAMPLES
- .sp
- .PP
- .B Tagging an image
- .TP
- Here is an example where an image is tagged with the tag 'Version-1.0' :
- .sp
- .RS
- docker tag 0e5574283393 fedora/httpd:Version-1.0
- .RE
- .sp
- .B Tagging an image for an internal repository
- .TP
- 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).
- .sp
- .RS
- docker tag 0e5574283393 myregistryhost:5000/fedora/httpd:version1.0
- .RE
- .sp
- .SH HISTORY
- April 2014, Originally compiled by William Henry (whenry at redhat dot com) based on dockier.io source material and internal work.
|