1. Create a Docker Registry container command:
Docker run-d-P 5000:5000 Registry
2, after the container starts, Access http://ip:5000, you can see:
"\" Docker-registry server\ ""
3. Label the image and point it to your registry docker tag 1e6ed717014b Localhost:5000/donhui/jenkins where 1e6ed717014b is the mirror ID
4. Push image to registry Docker push Localhost:5000/donhui/jenkins
5. From registry pull Mirror Docker pull Localhost:5000/donhui/jenkins
to view the image in Resistry using Csphere:
Note: registry:latest represents deprecated registry, while the Docker registry HTTP API also has V1 and V2 versions. the tags >= 2 refer to the new registry.
Older tags refer to the deprecated registry.
Reference: http://docs.docker.com/registry/https://registry.hub.docker.com/_/registry/
Other: The following article about Docker registry is good http://seanlook.com/2014/11/13/deploy-private-docker-registry-with-nginx-ssl/
Docker Registry Construction