=======================================install docker registry======================================
https://github.com/docker/docker-registry
http://blog.tankywoo.com/docker/2014/05/08/docker-3-docker-registry.html
[root]apt-get install build-essential python-dev libevent-dev python-pip libssl-dev liblzma-dev libffi-dev
$ git clone https://github.com/docker/docker-registry.git
$ cd git-registry
[root]sudo pip install .
cp config/config_sample.yml config/config.yml
vi config/config.yml
storage_path:/opt/data/registry
cp /usr/local/lib/python2.7/dist-packages/docker_registry/lib/../../config/config_sample.yml /usr/local/lib/python2.7/dist-packages/docker_registry/lib/../../config/config.yml
[root]gunicorn -c contrib/gunicorn_config.py docker_registry.wsgi:application
http://hostname:5000/
http://hostname:5000/v1/search
sudo docker tag 23ed55b2d26e hostname:5000/gitlab
sudo docker push hostname:5000/gitlab
http://hostname:5000/v1/repositories/gitlab/tags/latest
sudo docker pull www.dockerpool.com:5000/ubuntu:12.04
https://github.com/docker/docker-registry
http://blog.tankywoo.com/docker/2014/05/08/docker-3-docker-registry.html
[root]apt-get install build-essential python-dev libevent-dev python-pip libssl-dev liblzma-dev libffi-dev
$ git clone https://github.com/docker/docker-registry.git
$ cd git-registry
[root]sudo pip install .
cp config/config_sample.yml config/config.yml
vi config/config.yml
storage_path:/opt/data/registry
cp /usr/local/lib/python2.7/dist-packages/docker_registry/lib/../../config/config_sample.yml /usr/local/lib/python2.7/dist-packages/docker_registry/lib/../../config/config.yml
[root]gunicorn -c contrib/gunicorn_config.py docker_registry.wsgi:application
http://hostname:5000/
http://hostname:5000/v1/search
sudo docker tag 23ed55b2d26e hostname:5000/gitlab
sudo docker push hostname:5000/gitlab
http://hostname:5000/v1/repositories/gitlab/tags/latest
sudo docker pull www.dockerpool.com:5000/ubuntu:12.04