# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 25951e255ba7 registry "docker-registry"3 minutes ago Up 3 minutes 0.0.0.0:5000->5000/tcp registry_instance
# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE registry 2.1.1 b91f745cd233 5 days ago 220.1 MB ubuntu 14.04 a5a467fddcb8 6 days ago 187.9 MB hello-world latest 975b84d108f1 2 weeks ago 960 B 127.0.0.1:5000/hello-world latest 975b84d108f1 2 weeks ago 960 B
接下来,我们运行docker push将hello-world镜像push到我们的私有仓库中,
# docker push 127.0.0.1:5000/hello-world The push refers to a repository [127.0.0.1:5000/hello-world] (len: 1) Sending image list Pushing repository 127.0.0.1:5000/hello-world (1 tags) 535020c3e8ad: Image successfully pushed af340544ed62: Image successfully pushed Pushing tag for rev [af340544ed62] on {http://127.0.0.1:5000/v1/repositories/hello-world/tags/latest}
# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE registry 2.1.1 b91f745cd233 5 days ago 220.1 MB ubuntu 14.04 a5a467fddcb8 6 days ago 187.9 MB 127.0.0.1:5000/hello-world latest 0a6ba66e537a 2 weeks ago 960 B