如何为图像拉/推配置http代理? [英] How to configure http proxy for image pull/push?

查看:87
本文介绍了如何为图像拉/推配置http代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows Server 2016 TP5上配置docker守护程序以使用我们的公司代理服务器来拉/推图像?

解决方案

编辑您的 

%programdata%\ docker \\\ rununDockerDaemon.cmd



在` @ echo off `行


设置http_proxy = http:// a_corporate_proxy:8080


set https_proxy = http:// a_corporate_proxy :8080


set no_proxy = 127.0.0.1,registry





然后重启docker s ervice

How can I configure the docker daemon on Windows Server 2016 TP5 to use our corporate proxy server for pulling/pushing images?

解决方案

edit your 

%programdata%\docker\runDockerDaemon.cmd

add after the `@echo off` the lines

set http_proxy=http://a_corporate_proxy:8080

set https_proxy=http://a_corporate_proxy:8080

set no_proxy=127.0.0.1,registry


then restart the docker service


这篇关于如何为图像拉/推配置http代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆