github.com/gunjan5/docker@v1.8.2/man/docker-tag.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-tag - Tag an image into a repository
     6  
     7  # SYNOPSIS
     8  **docker tag**
     9  [**-f**|**--force**[=*false*]]
    10  [**--help**]
    11  IMAGE[:TAG] [REGISTRY_HOST/][USERNAME/]NAME[:TAG]
    12  
    13  # DESCRIPTION
    14  Assigns a new alias to an image in a registry. An alias refers to the
    15  entire image name including the optional `TAG` after the ':'. 
    16  
    17  If you do not specify a `REGISTRY_HOST`, the command uses Docker's public
    18  registry located at `registry-1.docker.io` by default. 
    19  
    20  # "OPTIONS"
    21  **-f**, **--force**=*true*|*false*
    22     When set to true, force the alias. The default is *false*.
    23  
    24  **REGISTRYHOST**
    25     The hostname of the registry if required. This may also include the port
    26  separated by a ':'
    27  
    28  **USERNAME**
    29     The username or other qualifying identifier for the image.
    30  
    31  **NAME**
    32     The image name.
    33  
    34  **TAG**
    35     The tag you are assigning to the image.  Though this is arbitrary it is
    36  recommended to be used for a version to distinguish images with the same name.
    37  Also, for consistency tags should only include a-z0-9-_. .
    38  Note that here TAG is a part of the overall name or "tag".
    39  
    40  # OPTIONS
    41  **-f**, **--force**=*true*|*false*
    42     Force. The default is *false*.
    43  
    44  # EXAMPLES
    45  
    46  ## Giving an image a new alias
    47  
    48  Here is an example of aliasing an image (e.g., 0e5574283393) as "httpd" and 
    49  tagging it into the "fedora" repository with "version1.0":
    50  
    51      docker tag 0e5574283393 fedora/httpd:version1.0
    52  
    53  ## Tagging an image for a private repository
    54  
    55  To push an image to an private registry and not the central Docker
    56  registry you must tag it with the registry hostname and port (if needed).
    57  
    58      docker tag 0e5574283393 myregistryhost:5000/fedora/httpd:version1.0
    59  
    60  # HISTORY
    61  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    62  based on docker.com source material and internal work.
    63  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    64  July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    65  April 2015, updated by Mary Anthony for v2 <mary@docker.com>
    66  June 2015, updated by Sally O'Malley <somalley@redhat.com>