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