In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces you how to build a private environment based on docker-registry source code, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
1: basic environment preparation
1.1 installation Foundation
Sudo apt-get install build-essential python-dev libevent-dev python-pip libssl-dev
Sudo pip install liblzma-dev
Sudo pip install libevent1-dev
1.2 create a directory
Mkdir-p / export/service
Mkdir-p / export/home/jae
Mkdir-p / tmp
1.2.3 mount disk to / tmp is used to store temporary files
2: download and install the source code
2.1 Source code download
Cd / export/service/ & & git clone http://icode.jd.com/cdlxyong/docker-registry.git
2.2 install docker-registry
Cd / export/service/docker-registry/ & & sudo python setup.pu install
2.3 install jss python sdk
Sudo pip install jss_python
2.4 install the docker-registry-driver-xx driver (if a third-party driver is used)
3: modify the configuration
Cd / usr/local/lib/python2.7/dist-packages/docker_registry-0.9.0-py2.7.egg
Modify config/config.yml if there is no config.yml under config/, then cp config_sample.yml config.yml
Use MySQL as the data source for storing index
Modify configuration
Search_backend: _ env:SEARCH_BACKEND:sqlalchemy
# SQLite search backend
Sqlalchemy_index_database: _ env:SQLALCHEMY_INDEX_DATABASE:mysql://user:pwd@ip:3306/jae
Install python_mysqldb
Apt-get install python-mysqldb
5: start the command
Starting command:
-- daemon running
Gunicorn-- access-logfile / export/home/jae/registry_access.log-- error-logfile / export/home/jae/registry_error.log-- daemon-- timeout 120-- debug-k gevent-b 0.0.0.0Vl5000-w 8 docker_registry.wsgi:application
-- no daemon running
Gunicorn-- access-logfile / export/home/jae/registry_access.log-- error-logfile / export/home/jae/registry_error.log-- debug-k gevent-b 0.0.0.0pur5000-w 1 docker_registry.wsgi:application
On how to build a private environment based on docker-registry source code is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.