搭建docker-registry开发环境

1 环境

os:ubuntu14.04

docker-registry:1.0.0  

2 步骤

2.1 安装需要的package

sudo apt-get install build-essential python-dev libevent-dev python-pip libssl-dev

sudo pip install liblzma-dev

sudo pip install libevent1-dev

2.2 下载docker-registry源码

sudo git clone https://github.com/docker/docker-registry.git

2.3 安装

cd docker-registry && sudo python setup.py install

2.4 修改配置

查看/usr/local/lib/python2.7/dist-packages/docker_registry-1.0.0_dev-py2.7.egg/config/是否有config.yml

如果没有在源码目录的config文件夹下将config_sample.myl 拷贝到/usr/local/lib/python2.7/dist-packages/docker_registry-1.0.0_dev-py2.7.egg/config/下,并改名为config.yml

2.5 启动

gunicorn --debug -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi:application


你可能感兴趣的:(云计算,PaaS)