updated some files and added dockerproxyscript

This commit is contained in:
Tobias Kessels
2018-11-19 13:48:17 +01:00
parent 4918c011fc
commit 07537d53f5
10 changed files with 76 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
echo -n "Username: "
read username
echo -n "Password: "
read -s password
echo "[Service]" > /etc/systemd/system/docker.service.d/http-proxy.conf
echo -n "Environment=HTTPS_PROXY='http://" >> /etc/systemd/system/docker.service.d/http-proxy.conf
echo -n "${username}:${password}@REDACTED:8080/' " >> /etc/systemd/system/docker.service.d/http-proxy.conf
echo -n '"NO_PROXY=localhost,127.0.0.1"' >> /etc/systemd/system/docker.service.d/http-proxy.conf
systemctl daemon-reload
systemctl restart docker