Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker, k8s上配置代理

Refer to: HTTP/HTTPS proxy

有时我们需要在服务器上配置代理才能访问google的官方镜像,网上找了很多,不是太麻烦就是不清晰。其实很简单,配置一下docker的代理就可以了。

参考上面的链接,然后将地址配成自己使用可以访问google的客户端地址,比如使用shadowsocks的windows电脑,IP为xx.xx.xx.xx,则可以配置成下面的

[Service]
Environment="HTTP_PROXY=http://xx.xx.xx.xx:1080/" "HTTPS_PROXY=https://xx.xx.xx.xx:1080/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment