Merge "Fix docker daemon proxy support in vagrant"
This commit is contained in:
commit
92bf9dd5dc
@ -127,8 +127,7 @@ EOF
|
|||||||
mkdir -p /etc/systemd/system/docker.service.d
|
mkdir -p /etc/systemd/system/docker.service.d
|
||||||
cat >/etc/systemd/system/docker.service.d/http-proxy.conf <<-EOF
|
cat >/etc/systemd/system/docker.service.d/http-proxy.conf <<-EOF
|
||||||
[Service]
|
[Service]
|
||||||
Environment="HTTP_PROXY=${http_proxy}" "HTTPS_PROXY=${https_proxy}"
|
Environment="HTTP_PROXY=${http_proxy}" "HTTPS_PROXY=${https_proxy}" "NO_PROXY=localhost,127.0.0.1,${REGISTRY_URL}"
|
||||||
"NO_PROXY=localhost,127.0.0.1,${REGISTRY_URL}"
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [[ "$(grep http_ /etc/bashrc)" == "" ]]; then
|
if [[ "$(grep http_ /etc/bashrc)" == "" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user