最近跟同事学了docker 私有仓库安装,我自己居然没搞出来,现在来做做笔记

第一步:

yum install binutils openssl-devel swig

env SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" pip install M2Crypto


-----------------------------------------------------------------------------

第二步:

替换镜像仓库,不然下载不了

http://mirrors.aliyun.com/pypi/simple/


easy_install:在~/.pydistutils.cfg配置文件中写入如下内容:


[easy_install]

index_url = http://e.pypi.python.org/simple



pip:在~/.pip/pip.conf配置文件中写入:

[global]

index-url = http://e.pypi.python.org/simple

----------------------------------------------------------------------------


第三步

python-pip install docker-registry


cp config/config_sample.yml config/config.yml

最后启动:

nohup gunicorn --access-logfile - --error-logfile - -k gevent -b 0.0.0.0:5000 -w 4 --max-requests 100 docker_registry.wsgi:application &


你可能感兴趣的:(最近跟同事学了docker 私有仓库安装,我自己居然没搞出来,现在来做做笔记)