diff options
author | Ryan Hallisey <rhallise@redhat.com> | 2015-10-19 16:19:45 +0000 |
---|---|---|
committer | Ryan Hallisey <rhallise@redhat.com> | 2015-11-02 19:36:51 +0000 |
commit | 092bcd9283db3379cc2ccc50499e7904d9647c25 (patch) | |
tree | c903d2f7b7931427535c7095c54e4db56bcf81ac /docker/firstboot/start_docker_agents.sh | |
parent | 3a9186d6585d13528bf904a40556242c02ba4233 (diff) |
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 <imain@redhat.com>
Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>
Diffstat (limited to 'docker/firstboot/start_docker_agents.sh')
-rw-r--r-- | docker/firstboot/start_docker_agents.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |