aboutsummaryrefslogtreecommitdiff
path: root/doc/multinode.rst
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2016-11-02 11:45:50 +0000
committerPaul Bourke <paul.bourke@oracle.com>2016-11-15 12:52:37 +0000
commitd8fec8ec0a51e529c8390e1a19c4fd25c7b863b1 (patch)
tree317b2545ce8db349da4dbea55e5f22da81995a99 /doc/multinode.rst
parent0d5407d55ee2aa96a4cbeea25ae252e11c660371 (diff)
downloadkolla-d8fec8ec0a51e529c8390e1a19c4fd25c7b863b1.tar.gz
kolla-d8fec8ec0a51e529c8390e1a19c4fd25c7b863b1.zip
Clean up docs around local registry
* Remove duplicated info between the 'image-building' and 'multinode' guides regarding deploying a local insecure registry. * Add a helper script to easily start a local registry in a consistent way. * Remove warnings around bugs in older registries, 2.3+ is now the default * Remove references to running the local registry on port 4000, this causes confusion as Docker expects port 5000 by default unless specified, and registries are not required for all-in-one deployments anyhow. TrivialFix Change-Id: I89f231df09102e3f1d5f21c8a8ca938ea60ae95b
Diffstat (limited to 'doc/multinode.rst')
-rw-r--r--doc/multinode.rst21
1 files changed, 7 insertions, 14 deletions
diff --git a/doc/multinode.rst b/doc/multinode.rst
index 46de3f252..98c8fa48f 100644
--- a/doc/multinode.rst
+++ b/doc/multinode.rst
@@ -4,28 +4,21 @@
Multinode Deployment of Kolla
=============================
+.. _deploy_a_registry:
+
Deploy a registry (required for multinode)
==========================================
A Docker registry is a locally hosted registry that replaces the need to pull
-from the Docker Hub to get images. Kolla can function with or without a local
-registry, however for a multinode deployment a registry is required.
-
-The Docker registry prior to version 2.3 has extremely bad performance because
-all container data is pushed for every image rather than taking advantage of
-Docker layering to optimize push operations. For more information reference
-`pokey registry <https://github.com/docker/docker/issues/14018>`__.
-
+from the Docker Hub to get images. A local registry is required for a multinode
+Kolla deployment.
The Kolla community recommends using registry 2.3 or later. To deploy registry
with version greater than 2.3, do the following:
::
- docker run -d -p 4000:5000 --restart=always --name registry registry:2
-
-.. note:: Kolla looks for the Docker registry to use port 4000. (Docker default is
- port 5000)
+ tools/start-registry
After starting the registry, it is necessary to instruct Docker that it will
be communicating with an insecure registry. To enable insecure registry
@@ -36,7 +29,7 @@ registry is currently running:
::
# CentOS
- INSECURE_REGISTRY="--insecure-registry 192.168.1.100:4000"
+ INSECURE_REGISTRY="--insecure-registry 192.168.1.100:5000"
For Ubuntu, check whether its using upstart or systemd.
@@ -50,7 +43,7 @@ Edit ``/etc/default/docker`` and add:
::
# Ubuntu
- DOCKER_OPTS="--insecure-registry 192.168.1.100:4000"
+ DOCKER_OPTS="--insecure-registry 192.168.1.100:5000"
If Ubuntu is using systemd, additional settings needs to be configured.
Copy docker's systemd unit file to ``/etc/systemd/system/`` directory: