github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/man/docker-push.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-push - Push an image or a repository to a registry
     6  
     7  # SYNOPSIS
     8  **docker push**
     9  [**--help**]
    10  NAME[:TAG] | [REGISTRY_HOST[:REGISTRY_PORT]/]NAME[:TAG]
    11  
    12  # DESCRIPTION
    13  
    14  Use `docker push` to share your images to the [Docker Hub](https://hub.docker.com)
    15  registry or to a self-hosted one.
    16  
    17  Refer to **docker-tag(1)** for more information about valid image and tag names.
    18  
    19  Killing the **docker push** process, for example by pressing **CTRL-c** while it
    20  is running in a terminal, terminates the push operation.
    21  
    22  Registry credentials are managed by **docker-login(1)**.
    23  
    24  
    25  # OPTIONS
    26  
    27  **--disable-content-trust**
    28    Skip image verification (default true)
    29  
    30  **--help**
    31    Print usage statement
    32  
    33  # EXAMPLES
    34  
    35  ## Pushing a new image to a registry
    36  
    37  First save the new image by finding the container ID (using **docker ps**)
    38  and then committing it to a new image name.  Note that only a-z0-9-_. are
    39  allowed when naming images:
    40  
    41      # docker commit c16378f943fe rhel-httpd
    42  
    43  Now, push the image to the registry using the image ID. In this example the
    44  registry is on host named `registry-host` and listening on port `5000`. To do
    45  this, tag the image with the host name or IP address, and the port of the
    46  registry:
    47  
    48      # docker tag rhel-httpd registry-host:5000/myadmin/rhel-httpd
    49      # docker push registry-host:5000/myadmin/rhel-httpd
    50  
    51  Check that this worked by running:
    52  
    53      # docker images
    54  
    55  You should see both `rhel-httpd` and `registry-host:5000/myadmin/rhel-httpd`
    56  listed.
    57  
    58  # HISTORY
    59  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    60  based on docker.com source material and internal work.
    61  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    62  April 2015, updated by Mary Anthony for v2 <mary@docker.com>
    63  June 2015, updated by Sally O'Malley <somalley@redhat.com>