After using git to download the source code, modify the configuration file config.yml, and change the Storage_path part to the storage location of the Docker image warehouse:
$ git clone https://github.com/dotcloud/docker-registry
$ CD Docker-registry
$ CP config_sample.yml CONFIG.YML
$ VI config.yml
...
# The default configuration when no flavor is specified
Dev
Storage:local
Storage_path:/home/vpsee/registry
Loglevel:debug
...
$ mkdir/home/vpsee/registry
Install some necessary packages and some Python tools and libraries that docker-registry need to use:
$ sudo apt-get install build-essential python-dev libevent-dev python-pip Libssl-dev
$ sudo pip install-r requirements.txt
Docker-registry is actually a Flask-based web app that can run after the installation is successful:
$ sudo gunicorn--access-logfile---debug-k gevent-b 0.0.0.0:80-w 1 wsgi:application
Open the browser and access the IP address to see that the Docker-registry private warehouse is running:
This article is from the "My Ops Road" blog, so be sure to keep this source http://linuxpython.blog.51cto.com/10015972/1625979
Building a Docker private warehouse