Create a remote private registry

二次信任 提交于 2019-12-12 04:03:01

问题


We are fairly new to docker but have been able to install docker on CentOS 6.4, created images, generated containers, and even created a private local registry.

Our question is in regards to the local registry. Well... actually... regarding a remote registry. We want to be able to create the registry on a separate server and not have everything in one place. We installed docker on another VM and have it running, but have had trouble finding documentation on how to access the registry remotely.

Just looking for some direction or url that will show how a remote registry would work.


回答1:


Take a look at the Docker Registry repo - it's a separate project to docker.

Their README.md should be enough to get you started.




回答2:


Our network would not allow us to access the internet to download RPMs. We determined the RPMs required to install docker-registry, downloaded them, placed them in a shell script in the order necessary to remove dependency issues, installed the RPMs and then start the service -- "service docker-registry start".

This does not create the registry as a docker image but as a standalone service -- not even sure why people seem to think having the registry as a docker image is preferable... seems to add an additional layer of unnecessary abstraction.

Below is the shell script with the list of RPMs in the "correct" order. Once executed, run "service docker-registry start".

rpm -ivh epel-release-6-8.noarch.rpm
rpm -ivh python-setuptools-0.6.10-3.el6.noarch.rpm
rpm -ivh python-pip-1.3.1-4.el6.noarch.rpm
rpm -ivh --force --nodeps glibc-2.12-1.132.el6.x86_64.rpm
rpm -ivh --force glibc-common-2.12-1.132.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.132.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm
rpm -ivh libgomp-4.4.7-4.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm
rpm -ivh libyaml-0.1.6-1.el6.x86_64.rpm
rpm -ivh PyYAML-3.10-3.el6.x86_64.rpm
rpm -ivh libevent-1.4.13-4.el6.x86_64.rpm
rpm -ivh python-babel-0.9.4-5.1.el6.noarch.rpm
rpm -ivh python-greenlet-0.4.2-1.el6.x86_64.rpm
rpm -ivh python-gevent-0.13.8-3.el6.x86_64.rpm
rpm -ivh python-gunicorn-18.0-1.el6.noarch.rpm
rpm -ivh python-jinja2-2.2.1-2.el6_5.x86_64.rpm
rpm -ivh python-markupsafe-0.9.2-4.el6.x86_64.rpm
rpm -ivh python-jinja2-26-2.6-3.el6.noarch.rpm
rpm -ivh python-werkzeug-0.8.3-2.el6.noarch.rpm
rpm -ivh python-flask-0.9-7.el6.noarch.rpm
rpm -ivh python-backports-1.0-3.el6.x86_64.rpm
rpm -ivh python-backports-ssl_match_hostname-3.4.0.2-1.el6.noarch.rpm
rpm -ivh python-ordereddict-1.1-2.el6.noarch.rpm
rpm -ivh python-six-1.7.3-1.el6.noarch.rpm
rpm -ivh python-urllib3-1.5-7.el6.noarch.rpm
rpm -ivh python-chardet-2.0.1-1.el6.noarch.rpm
rpm -ivh python-requests-1.1.0-4.el6.noarch.rpm
rpm -ivh python-redis-2.0.0-1.el6.noarch.rpm
rpm -ivh python-blinker-1.1-1.el6.noarch.rpm
rpm -ivh python-simplejson-2.0.9-3.1.el6.x86_64.rpm
rpm -ivh pyliblzma-0.5.3-3.el6.x86_64.rpm
rpm -ivh python-backports-lzma-0.0.2-5.el6.x86_64.rpm
rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm
rpm -ivh --force --nodeps python-lxml-2.2.3-1.1.el6.x86_64.rpm

rpm -ivh python-prettytable-0.7.2-1.el6.noarch.rpm
rpm -ivh python-httplib2-0.7.7-1.el6.noarch.rpm
rpm -ivh python-sqlalchemy-0.5.5-3.el6_2.noarch.rpm
rpm -ivh python-argparse-1.2.1-2.el6.noarch.rpm
rpm -ivh python-keystoneclient-0.2.0-3.el6.noarch.rpm
rpm -ivh python-importlib-1.0.2-1.el6.noarch.rpm
rpm -ivh python-jsonschema-2.3.0-1.el6.noarch.rpm
rpm -ivh python-warlock-0.4.0-2.el6.noarch.rpm
rpm -ivh python-boto-2.27.0-1.el6.noarch.rpm
rpm -ivh pyOpenSSL-0.10-2.el6.x86_64.rpm
rpm -ivh python-glanceclient-0.8.0-2.el6.noarch.rpm
rpm -ivh redis-2.4.10-1.el6.x86_64.rpm
rpm -ivh python-rsa-3.1.1-5.el6.noarch.rpm
rpm -ivh docker-registry-0.7.1-2.el6.noarch.rpm


来源:https://stackoverflow.com/questions/25069925/create-a-remote-private-registry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!