github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/docs/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 the registry 6 7 # SYNOPSIS 8 **docker push** 9 NAME[:TAG] 10 11 # DESCRIPTION 12 Push an image or a repository to a registry. The default registry is the Docker 13 Hub located at [hub.docker.com](https://hub.docker.com/). However the 14 image can be pushed to another, perhaps private, registry as demonstrated in 15 the example below. 16 17 # OPTIONS 18 There are no available options. 19 20 # EXAMPLES 21 22 # Pushing a new image to a registry 23 24 First save the new image by finding the container ID (using **docker ps**) 25 and then committing it to a new image name: 26 27 # docker commit c16378f943fe rhel-httpd 28 29 Now push the image to the registry using the image ID. In this example 30 the registry is on host named registry-host and listening on port 5000. 31 Default Docker commands will push to the default `hub.docker.com` 32 registry. Instead, push to the local registry, which is on a host called 33 registry-host*. To do this, tag the image with the host name or IP 34 address, and the port of the registry: 35 36 # docker tag rhel-httpd registry-host:5000/myadmin/rhel-httpd 37 # docker push registry-host:5000/myadmin/rhel-httpd 38 39 Check that this worked by running: 40 41 # docker images 42 43 You should see both `rhel-httpd` and `registry-host:5000/myadmin/rhel-httpd` 44 listed. 45 46 # HISTORY 47 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 48 based on docker.com source material and internal work. 49 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>