Building a Docker private warehouse

Source: Internet
Author: User
Tags using git

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.