github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/push.md (about) 1 --- 2 title: "push" 3 description: "The push command description and usage" 4 keywords: "share, push, image" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # push 17 18 ```markdown 19 Usage: docker push [OPTIONS] NAME[:TAG] 20 21 Push an image or a repository to a registry 22 23 Options: 24 --disable-content-trust Skip image verification (default true) 25 --help Print usage 26 ``` 27 28 Use `docker push` to share your images to the [Docker Hub](https://hub.docker.com) 29 registry or to a self-hosted one. 30 31 Refer to the [`docker tag`](tag.md) reference for more information about valid 32 image and tag names. 33 34 Killing the `docker push` process, for example by pressing `CTRL-c` while it is 35 running in a terminal, terminates the push operation. 36 37 Registry credentials are managed by [docker login](login.md). 38 39 ## Concurrent uploads 40 41 By default the Docker daemon will push five layers of an image at a time. 42 If you are on a low bandwidth connection this may cause timeout issues and you may want to lower 43 this via the `--max-concurrent-uploads` daemon option. See the 44 [daemon documentation](dockerd.md) for more details. 45 46 ## Examples 47 48 ### Pushing a new image to a registry 49 50 First save the new image by finding the container ID (using [`docker ps`](ps.md)) 51 and then committing it to a new image name. Note that only `a-z0-9-_.` are 52 allowed when naming images: 53 54 ```bash 55 $ docker commit c16378f943fe rhel-httpd 56 ``` 57 58 Now, push the image to the registry using the image ID. In this example the 59 registry is on host named `registry-host` and listening on port `5000`. To do 60 this, tag the image with the host name or IP address, and the port of the 61 registry: 62 63 ```bash 64 $ docker tag rhel-httpd registry-host:5000/myadmin/rhel-httpd 65 $ docker push registry-host:5000/myadmin/rhel-httpd 66 ``` 67 68 Check that this worked by running: 69 70 ```bash 71 $ docker images 72 ``` 73 74 You should see both `rhel-httpd` and `registry-host:5000/myadmin/rhel-httpd` 75 listed.