diff --git a/docs/http_proxy.md b/docs/http_proxy.md index b638bdaab4..7621d7595a 100644 --- a/docs/http_proxy.md +++ b/docs/http_proxy.md @@ -23,8 +23,7 @@ export HTTP_PROXY=http:// export HTTPS_PROXY=https:// export NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24 -minikube start --docker-env=HTTP_PROXY=$HTTP_PROXY --docker-env HTTPS_PROXY=$HTTPS_PROXY \ - --docker-env NO_PROXY=$NO_PROXY +minikube start ``` To make the exported variables permanent, consider adding the declarations to ~/.bashrc or wherever your user-set environment variables are stored. @@ -36,12 +35,23 @@ set HTTP_PROXY=http:// set HTTPS_PROXY=https:// set NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.1/24,192.168.39.0/24 -minikube start --docker-env=HTTP_PROXY=$HTTP_PROXY --docker-env HTTPS_PROXY=$HTTPS_PROXY \ - --docker-env NO_PROXY=$NO_PROXY +minikube start ``` To set these environment variables permanently, consider adding these to your [system settings](https://support.microsoft.com/en-au/help/310519/how-to-manage-environment-variables-in-windows-xp) or using [setx](https://stackoverflow.com/questions/5898131/set-a-persistent-environment-variable-from-cmd-exe) +## Configuring Docker to use a proxy + +As of v1.0, minikube automatically configures the Docker instance inside of the VM to use the proxy environment variables, unless you have specified a `--docker-env` override. If you need to manually configure Docker for a set of proxies, use: + + +```shell +minikube start \ + --docker-env=HTTP_PROXY=$HTTP_PROXY \ + --docker-env HTTPS_PROXY=$HTTPS_PROXY \ + --docker-env NO_PROXY=$NO_PROXY +``` + ## Troubleshooting ### unable to cache ISO... connection refused @@ -84,6 +94,10 @@ Ask your IT department for the appropriate PEM file, and add it to: Then run `minikube delete` and `minikube start`. +## downloading binaries: proxyconnect tcp: tls: oversized record received with length 20527 + +Your need to set a correct `HTTPS_PROXY` value. + ## Additional Information * [Configure Docker to use a proxy server](https://docs.docker.com/network/proxy/)