From 092bcd9283db3379cc2ccc50499e7904d9647c25 Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Mon, 19 Oct 2015 16:19:45 +0000 Subject: Add local docker registry support Create a set of environment variables that allows us to configure a docker registry for deployment. This patch assumes there is a local docker registry already setup with the images loaded in place. Change-Id: Iaafaf23eb3fa8b24bcd8f73bb38c552bea629607 Signed-off-by: Ian Main Co-Authored-By: Ryan Hallisey --- docker/firstboot/start_docker_agents.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docker/firstboot/start_docker_agents.sh') diff --git a/docker/firstboot/start_docker_agents.sh b/docker/firstboot/start_docker_agents.sh index cb7c57ff..29b039aa 100644 --- a/docker/firstboot/start_docker_agents.sh +++ b/docker/firstboot/start_docker_agents.sh @@ -38,7 +38,9 @@ EOF #echo "ADD_REGISTRY='--registry-mirror $docker_registry'" >> /etc/sysconfig/docker # Local docker registry 1.8 -#/bin/sed -i s/ADD_REGISTRY/#ADD_REGISTRY/ /etc/sysconfig/docker +if [ $docker_namespace_is_registry ]; then + /bin/sed -i "s/# INSECURE_REGISTRY='--insecure-registry '/INSECURE_REGISTRY='--insecure-registry $docker_registry'/g" /etc/sysconfig/docker +fi /sbin/setenforce 0 /sbin/modprobe ebtables -- cgit 1.2.3-korg