man/docker-tag.1.md
0a0dd116
 % DOCKER(1) Docker User Manuals
b07f1938
 % Docker Community
 % JUNE 2014
0a0dd116
 # NAME
b07f1938
 docker-tag - Tag an image into a repository
0a0dd116
 
 # SYNOPSIS
b07f1938
 **docker tag**
 [**-f**|**--force**[=*false*]]
a2b529ea
 [**--help**]
6410c3c0
 IMAGE[:TAG] [REGISTRY_HOST/][USERNAME/]NAME[:TAG]
0a0dd116
 
 # DESCRIPTION
6410c3c0
 Assigns a new alias to an image in a registry. An alias refers to the
 entire image name including the optional `TAG` after the ':'. 
 
 If you do not specify a `REGISTRY_HOST`, the command uses Docker's public
 registry located at `registry-1.docker.io` by default. 
0a0dd116
 
 # "OPTIONS"
1b2b783b
 **-f**, **--force**=*true*|*false*
2858180a
    When set to true, force the alias. The default is *false*.
0a0dd116
 
 **REGISTRYHOST**
1b2b783b
    The hostname of the registry if required. This may also include the port
0a0dd116
 separated by a ':'
 
 **USERNAME**
1b2b783b
    The username or other qualifying identifier for the image.
0a0dd116
 
 **NAME**
1b2b783b
    The image name.
0a0dd116
 
 **TAG**
e471a87f
    The tag you are assigning to the image.  Though this is arbitrary it is
1df4049e
 recommended to be used for a version to distinguish images with the same name.
e471a87f
 Note that here TAG is a part of the overall name or "tag".
1b2b783b
 
b07f1938
 # OPTIONS
 **-f**, **--force**=*true*|*false*
    Force. The default is *false*.
 
0a0dd116
 # EXAMPLES
 
2858180a
 ## Giving an image a new alias
0a0dd116
 
fde10cf8
 Here is an example of aliasing an image (e.g., 0e5574283393) as "httpd" and 
e471a87f
 tagging it into the "fedora" repository with "version1.0":
0a0dd116
 
     docker tag 0e5574283393 fedora/httpd:version1.0
 
 ## Tagging an image for a private repository
 
 To push an image to an private registry and not the central Docker
 registry you must tag it with the registry hostname and port (if needed).
 
     docker tag 0e5574283393 myregistryhost:5000/fedora/httpd:version1.0
 
 # HISTORY
1b2b783b
 April 2014, Originally compiled by William Henry (whenry at redhat dot com)
fa29b1f0
 based on docker.com source material and internal work.
f8d9ecfb
 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
5743cc34
 July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
6410c3c0
 April 2015, updated by Mary Anthony for v2 <mary@docker.com>