aboutsummaryrefslogtreecommitdiffstats
path: root/nsb_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nsb_setup.sh')
-rwxr-xr-xnsb_setup.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/nsb_setup.sh b/nsb_setup.sh
index cb44839af..4a8e4db93 100755
--- a/nsb_setup.sh
+++ b/nsb_setup.sh
@@ -42,6 +42,16 @@ proxy_env:
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
EOF
+
+ mkdir -p /etc/systemd/system/docker.service.d
+ cat <<EOF > /etc/systemd/system/docker.service.d/http-proxy.conf
+---
+[Service]
+Environment="HTTP_PROXY=${http_proxy}" "HTTPS_PROXY=${https_proxy}" "NO_PROXY=${no_proxy}"
+EOF
+
+ systemctl daemon-reload
+ systemctl restart docker
fi
apt-get update > /dev/null 2>&1