mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
fix docker proxy issue
starting with systemd docker only sources /etc/default/docker which means for proxy to work the export commands need to be removed.
This commit is contained in:
parent
d1b85a497d
commit
aecb9380f2
1 changed files with 5 additions and 5 deletions
|
@ -279,11 +279,11 @@ if [ -f $myPROXYFILEPATH ];
|
||||||
then fuECHO "### Setting up the proxy for docker."
|
then fuECHO "### Setting up the proxy for docker."
|
||||||
myPROXY=$(cat $myPROXYFILEPATH)
|
myPROXY=$(cat $myPROXYFILEPATH)
|
||||||
tee -a /etc/default/docker <<EOF
|
tee -a /etc/default/docker <<EOF
|
||||||
export http_proxy=$myPROXY
|
http_proxy=$myPROXY
|
||||||
export https_proxy=$myPROXY
|
https_proxy=$myPROXY
|
||||||
export HTTP_PROXY=$myPROXY
|
HTTP_PROXY=$myPROXY
|
||||||
export HTTPS_PROXY=$myPROXY
|
HTTPS_PROXY=$myPROXY
|
||||||
export no_proxy=localhost,127.0.0.1,.sock
|
no_proxy=localhost,127.0.0.1,.sock
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue