updated some files and added dockerproxyscript

This commit is contained in:
Tobias Kessels
2018-11-19 13:48:17 +01:00
parent 4c4b17616c
commit 90729422a9
10 changed files with 76 additions and 6 deletions

11
update_docker_proxy.sh Executable file
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}@192.168.193.6: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