Merge "Fix docker daemon proxy support in vagrant"

This commit is contained in:
Jenkins 2016-06-27 03:17:02 +00:00 committed by Gerrit Code Review
commit 92bf9dd5dc

View File

@ -127,8 +127,7 @@ EOF
mkdir -p /etc/systemd/system/docker.service.d
cat >/etc/systemd/system/docker.service.d/http-proxy.conf <<-EOF
[Service]
Environment="HTTP_PROXY=${http_proxy}" "HTTPS_PROXY=${https_proxy}"
"NO_PROXY=localhost,127.0.0.1,${REGISTRY_URL}"
Environment="HTTP_PROXY=${http_proxy}" "HTTPS_PROXY=${https_proxy}" "NO_PROXY=localhost,127.0.0.1,${REGISTRY_URL}"
EOF
if [[ "$(grep http_ /etc/bashrc)" == "" ]]; then