aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/functions
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/lib/functions')
-rwxr-xr-xbootstrap/vagrant-onap/lib/functions9
1 files changed, 6 insertions, 3 deletions
diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions
index 90af2bc40..709d7ebc0 100755
--- a/bootstrap/vagrant-onap/lib/functions
+++ b/bootstrap/vagrant-onap/lib/functions
@@ -97,14 +97,17 @@ function install_maven {
_configure_maven
}
-# _configure_docker_proxy() - Configures proxy in Docker from ENV
-function _configure_docker_proxy {
+# _configure_docker_settings() - Configures Docker settings
+function _configure_docker_settings {
if [ $http_proxy ]; then
echo "export http_proxy=$http_proxy" >> /etc/default/docker
fi
if [ $https_proxy ]; then
echo "export https_proxy=$https_proxy" >> /etc/default/docker
fi
+
+ echo "DOCKER_OPTS=\"-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock\"" >> /etc/default/docker
+ usermod -a -G docker vagrant
}
# install_nodejs() - Download and install NodeJS
@@ -153,7 +156,7 @@ function install_docker {
$(lsb_release -cs) \
stable"
install_package docker-ce
- _configure_docker_proxy
+ _configure_docker_settings
service docker restart
sleep 10
}