for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker for Win wont accept HTTP Proxy with password auth

Open weidi opened this issue 9 years ago • 18 comments

Expected behavior

In the Proxies Section there should be an additional fiel for authentication

Actual behavior

even when writing down user:pass@proxy docker wont be able to connect to docker backend image

Information

[08:51:05.305][Notifications ][Error ] Failed to connect to dockerBackend: time out Version: 1.13.0-rc4-beta34 (9562) OS: Windows 10 Enterprise Id: 1607 Build: 14393

Steps to reproduce the behavior

  1. ...
  2. ...

weidi avatar Jan 05 '17 08:01 weidi

Can you try with the proper http:// prefix ? like http://user:pass@host:port ?

simonferquel avatar Jan 19 '17 10:01 simonferquel

Hi @weidi Any chance you got to try with http:// prefix?

dgageot avatar Jan 30 '17 08:01 dgageot

Hi @simonferquel @dgageot , It´s not working with or without http:// I get: [10:51:39.227][UpdateFeedDownloader][Error ] The remote server returned an error: (407) Proxy Authentication Required. Also a problem is, that the UI stays in Docker is starting mode and i´m unable to cancle this to edit settings, so i do have to do it manually in settings.json

weidi avatar Jan 30 '17 10:01 weidi

@simonferquel any idea?

dgageot avatar Jan 30 '17 10:01 dgageot

No idea, maybe a proxy server with a fancy authentication protocol ?

simonferquel avatar Feb 08 '17 15:02 simonferquel

It´s a bluecoat proxy and until now i managed connections through it with every piece of software even my own ;)

2017-02-08 16:35 GMT+01:00 Simon Ferquel [email protected]:

No idea, maybe a proxy server with a fancy authentication protocol ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/369#issuecomment-278362298, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFjHnbQ77NvzkG3cSDA4W38GAtsqpJbks5raeDUgaJpZM4Lbb9T .

weidi avatar Feb 08 '17 16:02 weidi

Is the proxy configured to do form based authentication (ie on Windows, does it prompt for a user/password in the browser) ?

simonferquel avatar Feb 10 '17 09:02 simonferquel

I think it´s a 407 based authentication method so any browser or so prompts for a password. Normally any other tool or linux is working when specifying e.g. http_proxy="http://user:[email protected]"

2017-02-10 10:11 GMT+01:00 Simon Ferquel [email protected]:

Is the proxy configured to do form based authentication (ie on Windows, does it prompt for a user/password in the browser) ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/369#issuecomment-278893560, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFjHtWu3AWKbD203VCfPXHxBcz4zUO2ks5rbCmngaJpZM4Lbb9T .

weidi avatar Feb 10 '17 10:02 weidi

Using the "http://user:password@proxy_host:port/" format worked for me, the only thing to look out for is that the password needs to be URL encoded.

kewne avatar Apr 05 '17 10:04 kewne

..corporate proxy could be configurated to accept only :

Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM

Unfortunately as far as Docker CE 17.09.9-ce-win33 (13620) it try to

CONNECT registry-1.docker.io:443 HTTP/1.1
Host: registry-1.docker.io:443
User-Agent: Go-http-client/1.1
Proxy-Authorization: Basic

therefore an authentication method more robust than "Basic" is required in some case

rondinif avatar Nov 23 '17 14:11 rondinif

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Mar 28 '18 10:03 docker-robott

If password has special symbol, you can fail proxy auth. I has same promblem because my password has symbol !, but it sended to proxy by docker as %21. Docker will send like below. ! -> %21 %21 -> %21

Proxy want ! character, but you can never send it before Docker fixed. Use fiddler or change password used only alphabetical or numeric character.

ghost avatar May 28 '18 00:05 ghost

This was written for Linux but you should also encode user and password on Windows.

“Struggling with Docker on Linux behind a corporate Proxy? Read this!” https://medium.com/@rodrigoriccitellivieira/struggling-with-docker-on-linux-behind-a-corporate-proxy-d98da8e1738d

RodrigoRVieira avatar May 28 '18 00:05 RodrigoRVieira

Thank you for response. I test it Mac OS and Windows, but not linux. Docker for Linux not same? OK, I will test it Ubuntu and Cent OS. Give me some time for install linux to real machine.

I read the link and I realized this problem already notified before.
I'm sorry about I did not found that. Thank you for reply.

ghost avatar May 28 '18 00:05 ghost

Enconding not working anymore, im using version of 2.0.0.0 of docker when i try run

docker pull swaggerapi/swagger-editor i receive proxy authentication required.

i was running it with the following configuration: http://username:password@host/proxi.js

my password is something@123 and i was using something%64123 %64 = @

i tried everything, the only thing that worked for me was changing my password to one that hasnt special characters since encoding wasnt working

ghost avatar Nov 20 '18 14:11 ghost

Use %40 an not %64. It have to be in HEX.

stphdenis avatar Sep 18 '19 09:09 stphdenis

I have used each and every method of proxy settings, but not getting the result. An error of proxy authentication required is being highlighting. Please suggest any method.

jain2010 avatar Jan 08 '20 08:01 jain2010

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 19 '20 03:06 docker-robott