Chinaunix首页 | 论坛 | 博客
  • 博客访问: 21466
  • 博文数量: 7
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 92
  • 用 户 组: 普通用户
  • 注册时间: 2013-07-30 21:19
个人简介

07年毕业至今,一直从事运维工作。目前在深圳市酷开网络科技有限公司担任运维工程师。愿与运维人员共同学习,共同研究。

文章分类

全部博文(7)

文章存档

2015年(6)

2013年(1)

我的朋友

分类: 系统运维

2015-03-31 21:05:02

1,用 git 下载源码后修改配置文件 config.yml,把 storage_path 部分改成 Docker 镜像仓库的存放地点:

$ git clone 
$ cd docker-registry$ cp config_sample.yml config.yml
$ vi config.yml
...
# This is the default configuration when no flavor is specified
dev:
    storage: local
    storage_path: /home/vpsee/registry
    loglevel: debug
...

$ mkdir /home/vpsee/registry

2,安装一些必要软件包和一些 Docker-Registry 需要用到的 Python 工具和库:
$ sudo apt-get install build-essential python-dev libevent-dev python-pip libssl-dev

$ sudo pip install -r requirements.txt


Docker-Registry 实际上是个基于 Flask 的 web app,安装成功后就可以这样运行了:
$ sudo gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:80 -w 1 wsgi:application

3,打开浏览器,访问 IP 地址就可以看到 docker-registry 私有仓库在运行了:

阅读(305) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~