大网数据广告活动
服务器运维问答

How to configure proxy credentials for docker in windows?

· 52CE 我爱测

Setting up a proxy manually doesn't work on my enterprise network. When running the docker login it returns the following error message: Error response from daemon: Get https://a/v2/: Proxy Authentication Required ( ... requires …

问题原文

原帖链接 · Miguel · CC BY-SA 4.0

Setting up a proxy manually doesn't work on my enterprise network. When running the docker login it returns the following error message:

Error response from daemon: Get https://a/v2/: Proxy Authentication Required ( ... requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )

I am running the docker instance on Windows 10.

I have tried the following 2 things for debugging:

  • Passing the credentials in the URL, but the proxy doesn't seem to allow basic authentication or if it does it will not accept the credentials in the parameters.

  • Changing the docker service account, as posted here, but that breaks the docker installation. Commands sent from the PowerShell always return an error when accessing the pipe.

I am out of options. Is there another way to solve this?

If I understand the system correctly, I need some way to pass the credentials to the proxy, because the proxy is requiring it this way. Also, it can't get the credentials from a service running with a local service account.

社区高分解答

原帖链接 · Nelssen · CC BY-SA 4.0

The documentation at this point in time is not very clear.

Here is what worked out for me on:

- Docker 19.03.5, build 633a0ea 
- windows 10 Enterprise platform

1) Go to Docker Desktop > Settings > Proxies

2) Set Manual proxy configuration

3) Set your proxy and credentials at Web server and Secure Web server

  • create your proxy url and credentials in this format: domain\username:[email omitted]:port
  • remove special characters from domain\username:password at https://www.url-encode-decode.com/
  • paste the url in the inputs for Web Server and Secure Web Server

4 - Add the desired exceptions to your proxy

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-07-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。