http://blog.csdn.net/wangtaoking1/article/details/44180901/
仓库服务器 192.168.112.136
1.sudo docker pull registry
2.sudo docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
客户端 192.168.112.132
sudo docker pull busybox
sudo docker tag busybox 192.168.112.136:5000/busybox
ubuntu下修改/etc/default/docker
DOCKER_OPTS=="--insecure-registry 192.168.112.136:5000"
sudo restart docker
sudo docker push 192.168.112.136:5000/busybox
sudo docker pull 192.168.112.136:5000/busybox
docker search 192.168.112.136:5000/
curl -XGET http://registry:5000/v2/_catalog
curl -XGET http://registry:5000/v2/image_name/tags/list
仓库服务器 192.168.112.136
1.sudo docker pull registry
2.sudo docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
客户端 192.168.112.132
sudo docker pull busybox
sudo docker tag busybox 192.168.112.136:5000/busybox
ubuntu下修改/etc/default/docker
DOCKER_OPTS=="--insecure-registry 192.168.112.136:5000"
sudo restart docker
sudo docker push 192.168.112.136:5000/busybox
sudo docker pull 192.168.112.136:5000/busybox
docker search 192.168.112.136:5000/
curl -XGET http://registry:5000/v2/_catalog
curl -XGET http://registry:5000/v2/image_name/tags/list