From 19b0defb9220ff55e16f857dd6741b7e16a44bc7 Mon Sep 17 00:00:00 2001 From: Matt McEuen Date: Wed, 21 Dec 2016 17:18:07 -0600 Subject: [PATCH] Configure local registries to proxy docker hub Added the REGISTRY_PROXY_REMOTEURL parameter to the registry creation script, so that the registry will mirror images from Docker Hub (while still being able to host custom-built images). Updated the Multinode guide to reflect this. Change-Id: Ib789241fd2947b06fb0dc5732a0bf28431e1403d Closes-Bug: #1647436 --- doc/multinode.rst | 4 ++++ tools/start-registry | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/multinode.rst b/doc/multinode.rst index 24938edaf6..b88a248ff2 100644 --- a/doc/multinode.rst +++ b/doc/multinode.rst @@ -35,6 +35,10 @@ Configure Docker on all nodes .. note:: As the subtitle for this section implies, these steps should be applied to all nodes, not just the deployment node. +The ``start-registry`` script configures a docker registry that proxies Kolla +images from Docker Hub, and can also be used with custom built images (see +:doc:`image-building`). + After starting the registry, it is necessary to instruct Docker that it will be communicating with an insecure registry. To enable insecure registry communication on CentOS, modify the ``/etc/sysconfig/docker`` file to contain diff --git a/tools/start-registry b/tools/start-registry index 7c29e13a12..cb97151497 100755 --- a/tools/start-registry +++ b/tools/start-registry @@ -5,4 +5,5 @@ docker run -d \ --restart=always \ -p 5000:5000 \ -v registry:/var/lib/registry \ + -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io \ registry:2