Create a remote private registry

We are pretty new to docker, but installed dockers on CentOS 6.4, created images, created containers, and even created a private local registry.

Our question is about the local registry. Well ... actually ... regarding the remote registry. We want to be able to create a registry on a separate server and not have it all in one place. We installed docker on another virtual machine and started it, but you had problems finding documentation on how to access the registry remotely.

Just find some direction or URL that will show how the remote registry will work.

0
source share
2 answers

Check out the Docker Registry repo, a standalone docker project.

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

0
source

Our network will not allow us to access the Internet to download RPMs. We determined the RPMs needed to install the docker registry, downloaded them, placed them in the script shell in the order needed to remove the dependency problems, installed the RPMs and then started the service - β€œlaunch docker-registry start”.

This does not create the registry as an image of dockers, but as a standalone service - I’m not even sure why people seem to think that the registry as the image of dockers is preferable ... it seems to add an additional layer of unnecessary abstraction.

Below is a shell script with an RPM list in the "correct" order. After execution run "start-service start-service 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 
0
source

Source: https://habr.com/ru/post/975810/


All Articles