Enable cross-platforms login to Registry
Enable cross-platforms login to Registry

Use a daemon-defined Registry URL for `docker login`. This allows a
Windows client interacting with a Linux daemon to properly use the
default Registry endpoint instead of the Windows specific one.

Signed-off-by: Arnaud Porterie <55258e89a8b41a46066b3a9514b15a78c1a88d17@docker.com>

mtanlee/docker,LaynePeng/docker,docker/docker.github.io,erikstmartin/docker,sanjeo/docker,jameszhan/docker,gnailuy/docker,erikh/docker,abhinavdahiya/docker,13W/docker,tkopczynski/docker,sfsmithcha/docker,SaiedKazemi/docker,joaofnfernandes/docker.github.io,moul/docker,bfirsh/docker,jlhawn/docker,jzwlqx/denverdino.github.io,KingEmet/docker,gdevillele/docker.github.io,medallia/docker,anweiss/docker.github.io,joaofnfernandes/docker.github.io,michelvocks/docker,paralin/docker,denverdino/denverdino.github.io,troy0820/docker.github.io,amatsus/docker,londoncalling/docker.github.io,liaoqingwei/docker,danyalKhaliq10p/moby,jongiddy/docker,yummypeng/docker,pradipd/moby,portworx/docker,Jimmy-Xu/hypercli,srust/docker,imkin/moby,kerneltime/docker,dsheets/moby,diogomonica/docker,phiroict/docker,YujiOshima/docker,laijs/docker,Mokolea/docker,jc-m/docker,darrenstahlmsft/docker,msabansal/docker,BSWANG/denverdino.github.io,achanda/docker,mikebrow/docker,dperny/docker,lixiaobing10051267/docker,cyli/docker,TrumanLing/docker,Microsoft/docker,moxiegirl/docker,joeuo/docker.github.io,tonistiigi/docker,yongtang/docker,gdevillele/docker.github.io,Microsoft/docker,aduermael/docker.github.io,rremer/moby,JimGalasyn/docker.github.io,medallia/docker,noironetworks/docker,kerneltime/docker,thaJeztah/docker.github.io,Shopify/docker,joeuo/docker.github.io,achanda/docker,aditirajagopal/docker,Altiscale/docker,coreos/docker,medallia/docker,tophj-ibm/docker,toli/docker,scollier/docker,alfred-landrum/docker,jlebon/docker,sanscontext/docker.github.io,mkumatag/docker,yasiramin10p/moby,michael-holzheu/docker,ffoysal/docker,rkazak/docker,bearstech/moby,imkin/moby,geekylucas/docker,hustcat/docker,achanda/docker,miminar/docker,HuKeping/docker,erikstmartin/docker,justincormack/docker,AkihiroSuda/docker,tpounds/docker,rhatdan/storage,Morsicus/docker,pramodhkp/moby,thtanaka/docker,jvanz/docker,sallyom/docker,sdurrheimer/docker,ailispaw/docker,konstruktoid/docker-upstream,Altiscale/docker,moypray/docker,kimh/docker,akira-baruah/docker,duglin/docker,maxamillion/docker,estesp/docker,sean-jc/docker,yongtang/docker,ibuildthecloud/docker,nalind/docker,danyalKhaliq10p/moby,aduermael/docker.github.io,lixiaobing10051267/docker,tonistiigi/docker,13W/docker,zhuguihua/docker,kunalkushwaha/docker,isubuz/docker,pecameron/docker,xiaods/docker,HackToday/docker,mtesselH/docker,danix800/docker.github.io,crosbymichael/docker,cmehay/docker-1,erikstmartin/docker,docker-zh/docker.github.io,konstruktoid/docker-upstream,x1022as/docker,davinashreddy/docker,kencochrane/docker,SvenDowideit/docker,errordeveloper/docker,cloudflare/docker,madhanrm/docker,alfred-landrum/docker,nghiant2710/docker,bfirsh/docker,KarthikNayak/docker,madhanrm/docker,brahmaroutu/docker,rkazak/docker,tkopczynski/docker,darrenstahlmsft/docker,yummypeng/docker,ibuildthecloud/docker,twaugh/docker,mtrmac/docker,hyperhq/hypercli,HuKeping/docker,supasate/docker,rillig/docker.github.io,YuPengZTE/docker,willmtemple/docker,trebonian/docker,mathewkoshy493/docker,wenchma/docker,noxiouz/docker,Ramzec/docker,JMesser81/docker,vijaykilari/docker,estesp/docker,tmp6154/docker,shin-/docker.github.io,PatrickLang/moby,sanjeo/docker,KingEmet/docker,splunk/docker,HuKeping/docker,yp-engineering/docker,phiroict/docker,thaJeztah/docker,luxas/docker,BenHall/docker,mtesselH/docker,gschaetz/moby,Syntaxide/docker,TrumanLing/docker,tklauser/docker,flavio/docker,joeuo/docker.github.io,estesp/docker,ripcurld0/moby,projectatomic/docker,vdemeester/docker,afein/docker,pradipd/moby,Mokolea/docker,BSWANG/denverdino.github.io,denverdino/denverdino.github.io,shin-/docker.github.io,JimGalasyn/docker.github.io,tkopczynski/docker,POLJM242/docker,alexisbellido/docker.github.io,mgoelzer/docker,mgoelzer/docker,mgoelzer/docker,contiv/docker,ivansaracino/docker,sallyom/docker,sunyuan3/docker,rhardih/docker,haveatry/docker,cnaize/docker,YuPengZTE/docker,whuwxl/docker,ckeyer/docker,aditirajagopal/docker,xiekeyang/docker,coreos/docker,pecameron/docker,raja-sami-10p/moby,sfsmithcha/docker,charleszheng44/moby,pyotr777/docker,portworx/docker,gao-feng/docker,xuxinkun/docker,konstruktoid/docker-1,tophj-ibm/moby,SaiedKazemi/docker,jzwlqx/denverdino.github.io,catinthesky/docker,docker/docker,jc-m/docker,coolljt0725/docker,xiaods/docker,jvanz/docker,YuPengZTE/docker,anujbahuguna/docker,johnstep/moby-moby,mahak/docker,bfirsh/docker,brahmaroutu/docker,londoncalling/docker.github.io,kojiromike/docker,bearstech/moby,Mashimiao/docker,joaofnfernandes/docker.github.io,sanscontext/docker.github.io,geekylucas/docker,moxiegirl/docker,konstruktoid/docker-upstream,tagomoris/docker,jhorwit2/docker,fangyuan930917/docker,cpuguy83/docker,eskaaren/docker,yasiramin10p/moby,moby/moby,runcom/docker,ripcurld0/moby,mixja/docker,TheBigBear/docker,mstanleyjones/docker,thaJeztah/docker,HideoYamauchi/docker,msabansal/docker,KarthikNayak/docker,paralin/docker,stainboy/docker,inatatsu/docker,dsau/docker,laijs/docker,thaJeztah/docker.github.io,londoncalling/docker.github.io,errordeveloper/docker,Tenk42/docker,naveed-jamil-tenpearls/moby,justyntemme/docker,allencloud/docker,shubheksha/docker.github.io,nguyentm83/docker,OnePaaS/docker,dims/docker,mohmost12/docker,vijaykilari/docker,containers/storage,dnephin/docker,zhuguihua/docker,denverdino/docker.github.io,LuisBosquez/docker.github.io,stainboy/docker,denverdino/denverdino.github.io,sfsmithcha/docker,haveatry/docker,yp-engineering/docker,menglingwei/denverdino.github.io,tianon/docker,jecarey/docker,ailispaw/docker,portworx/docker,coolljt0725/docker,docker/docker.github.io,jwhonce/docker,michelvocks/docker,asbjornenge/docker,mstanleyjones/docker,dsau/docker,dsau/docker,cpuguy83/docker,aduermael/docker.github.io,bonczj/moby-json-file-logger,gschaetz/moby,dmcgowan/docker,mike1729/docker,gigidwan/docker,konstruktoid/docker-1,jlhawn/docker,srust/docker,HideoYamauchi/docker,OnePaaS/docker,jvanz/docker,icaoweiwei/docker,fsoppelsa/docker,sarnautov/moby,toli/docker,ckeyer/docker,resin-io/docker,menglingwei/denverdino.github.io,jhorwit2/docker,hyperhq/hypercli,bdwill/docker.github.io,bdwill/docker.github.io,jthelin/docker,gdevillele/docker.github.io,amatsus/docker,dongjoon-hyun/docker,qudongfang/docker,gigidwan/docker,ffoysal/docker,mtesselH/docker,sdurrheimer/docker,13W/docker,jhorwit2/docker,shishir-a412ed/docker,darrenstahlmsft/moby,thtanaka/docker,projectatomic/docker,noironetworks/docker,trebonian/docker,bluebreezecf/docker,runcom/docker,inatatsu/docker,LaynePeng/docker,contiv/docker,fcrisciani/docker,kojiromike/docker,kencochrane/docker,moby/moby,medallia/docker,gnailuy/docker,Microsoft/docker,inatatsu/docker,duglin/docker,troy0820/docker.github.io,zhangjianfnst/docker,nawawi/docker,johnstep/docker.github.io,abhinavdahiya/docker,sean-jc/docker,sanscontext/docker.github.io,mike1729/docker,naveed-jamil-tenpearls/moby,zhangjianfnst/docker,docker/docker,moypray/docker,dgageot/docker,moxiegirl/docker,mahak/docker,alexisbellido/docker.github.io,tophj-ibm/moby,projectatomic/docker,Syntaxide/docker,BSWANG/denverdino.github.io,gjaskiewicz/moby,pramodhkp/moby,TheBigBear/docker,Tenk42/docker,mtrmac/docker,fangyuan930917/docker,hyperhq/hypercli,icecrime/docker,bluebreezecf/docker,scotttlin/docker,resin-io/docker,Morsicus/docker,rhatdan/docker,xuxinkun/docker,moby/moby,kolyshkin/docker,tmp6154/docker,dnephin/docker,izarov/docker,Ramzec/docker,johnstep/docker.github.io,gao-feng/docker,jimjag/docker,konstruktoid/docker-1,mstanleyjones/docker,qudongfang/docker,michael-holzheu/docker,umerazad/docker,haveatry/docker,geekylucas/docker,gnailuy/docker,mkumatag/docker,mikedougherty/docker,pecameron/docker,nawawi/docker,madhanrm/docker,icecrime/docker,dccurtis/docker,docker-zh/docker.github.io,Mokolea/docker,mohmost12/docker,tophj-ibm/docker,ripcurld0/moby,denverdino/docker.github.io,denverdino/denverdino.github.io,SaiedKazemi/docker,HackToday/docker,docker-zh/docker.github.io,moul/docker,PatrickLang/moby,anortef/docker,scollier/docker,endophage/docker,rhatdan/storage,rremer/moby,yosifkit/docker,x1022as/docker,unclejack/docker,ajaymdesai/docker,shishir-a412ed/docker,amatsus/docker,bearstech/moby,fsoppelsa/docker,mike1729/docker,danyalKhaliq10p/moby,gjaskiewicz/moby,umerazad/docker,izarov/docker,dgageot/docker,flavio/docker,stevvooe/docker,jwhonce/docker,ndeloof/docker,docker-zh/docker.github.io,nawawi/docker,alexisbellido/docker.github.io,thaJeztah/docker,DoraALin/docker,dongjoon-hyun/docker,laijs/moby,nghiant2710/docker,michelvocks/docker,cloudflare/docker,bonczj/moby-json-file-logger,stainboy/docker,trebonian/docker,ZJUshuaizhou/docker,zhuguihua/docker,ibuildthecloud/docker,bonczj/moby-json-file-logger,menglingwei/denverdino.github.io,londoncalling/docker.github.io,14rcole/docker,gigidwan/docker,sallyom/docker,runcom/docker,phiroict/docker,darrenstahlmsft/moby,justyntemme/docker,catinthesky/docker,shin-/docker.github.io,DoraALin/docker,johnstep/docker.github.io,denverdino/docker.github.io,imeoer/hypercli,pyotr777/docker,ibuildthecloud/docker,JimGalasyn/docker.github.io,jzwlqx/denverdino.github.io,shubheksha/docker.github.io,kolyshkin/moby,erikh/docker,sanjeo/docker,LuisBosquez/docker.github.io,tianon/docker,moypray/docker,mathewkoshy493/docker,darrenstahlmsft/docker,ZJU-SEL/docker,imeoer/hypercli,tklauser/docker,harche/docker,moby/moby,ivansaracino/docker,anweiss/docker.github.io,johnstep/moby-moby,anujbahuguna/docker,rhatdan/docker,docker/docker.github.io,vdemeester/docker,unclejack/docker,anweiss/docker.github.io,BenHall/docker,charleswhchan/docker,raja-sami-10p/moby,splunk/docker,thtanaka/docker,justincormack/docker,sheimi/docker,fangyuan930917/docker,q384566678/docker,johnstep/docker.github.io,catinthesky/docker,anweiss/docker.github.io,srust/docker,imkin/moby,troy0820/docker.github.io,charleswhchan/docker,afein/docker,wenchma/docker,gdevillele/docker.github.io,noxiouz/docker,jlebon/docker,nalind/docker,stevvooe/docker,carolfh/docker,rillig/docker.github.io,dsheets/moby,cpuguy83/docker,Syntaxide/docker,troy0820/docker.github.io,hypriot/docker,jimjag/docker,alexisbellido/docker.github.io,twaugh/docker,ZJU-SEL/docker,yosifkit/docker,xiaods/docker,SvenDowideit/docker,jameszhan/docker,tklauser/docker,docker/docker,djs55/docker,laijs/docker,tmp6154/docker,dperny/docker,DoraALin/docker,mixja/docker,cyli/docker,nalind/docker,YujiOshima/docker,kolyshkin/moby,moul/docker,cr7pt0gr4ph7/docker,Ramzec/docker,unclejack/docker,jimjag/docker,yosifkit/docker,sarnautov/moby,docker/docker.github.io,jecarey/docker,jzwlqx/denverdino.github.io,sterchelen/docker,HackToday/docker,TheBigBear/docker,SvenDowideit/docker,isubuz/docker,sarnautov/moby,q384566678/docker,nawawi/docker,dims/docker,denverdino/denverdino.github.io,anortef/docker,Ramzec/docker,trebonian/docker,justincormack/docker,sheimi/docker,phiroict/docker,whuwxl/docker,kunalkushwaha/docker,abhinavdahiya/docker,shin-/docker.github.io,upmio/docker,Morsicus/docker,bearstech/moby,KingEmet/docker,docker/docker.github.io,lixiaobing1/docker,msabansal/docker,mtanlee/docker,kolyshkin/moby,noxiouz/docker,danix800/docker.github.io,icaoweiwei/docker,anweiss/docker.github.io,cr7pt0gr4ph7/docker,bdwill/docker.github.io,ZJUshuaizhou/docker,moul/docker,bdwill/docker.github.io,mtanlee/docker,mtrmac/docker,anujbahuguna/docker,ColinHebert/docker,joeuo/docker.github.io,contiv/docker,prertik/docker,gschaetz/moby,fcrisciani/docker,fsoppelsa/docker,davinashreddy/docker,yongtang/docker,tpounds/docker,whuwxl/docker,yp-engineering/docker,fcrisciani/docker,sanscontext/docker.github.io,mikebrow/docker,harche/docker,Shopify/docker,dsheets/moby,tpounds/docker,denverdino/docker.github.io,izarov/docker,toli/docker,raja-sami-10p/moby,rancher/docker,kojiromike/docker,alfred-landrum/docker,rillig/docker.github.io,charleszheng44/moby,ndeloof/docker,crosbymichael/docker,kerneltime/docker,maxamillion/docker,cloudflare/docker,nalind/docker,paralin/docker,liaoqingwei/docker,LuisBosquez/docker.github.io,endophage/docker,BSWANG/denverdino.github.io,Jimmy-Xu/hypercli,ffoysal/docker,solganik/docker,yosifkit/docker,dccurtis/docker,cyli/docker,cyphar/docker,pradipd/moby,sunyuan3/docker,lixiaobing1/docker,JimGalasyn/docker.github.io,dmcgowan/docker,luxas/docker,sunyuan3/docker,Mashimiao/docker,14rcole/docker,thaJeztah/docker.github.io,jameszhan/docker,cnaize/docker,xuxinkun/docker,hustcat/docker,aidanhs/docker,pyotr777/docker,JMesser81/docker,nguyentm83/docker,jwhonce/docker,mbanikazemi/docker,menglingwei/denverdino.github.io,resin-io/docker,carolfh/docker,docker-zh/docker.github.io,gdevillele/docker.github.io,Altiscale/docker,cnaize/docker,aditirajagopal/docker,konstruktoid/docker-upstream,aduermael/docker.github.io,kunalkushwaha/docker,imeoer/hypercli,AkihiroSuda/docker,hypriot/docker,rhardih/docker,eskaaren/docker,maxamillion/docker,crosbymichael/docker,hqhq/moby,gjaskiewicz/moby,vijaykilari/docker,ColinHebert/docker,duglin/docker,laijs/moby,Jimmy-Xu/hypercli,shhsu/docker,liaoqingwei/docker,ZJUshuaizhou/docker,xiekeyang/docker,shhsu/docker,brahmaroutu/docker,charleszheng44/moby,eskaaren/docker,mbanikazemi/docker,darrenstahlmsft/moby,danix800/docker.github.io,supasate/docker,13W/docker,thaJeztah/docker.github.io,willmtemple/docker,shubheksha/docker.github.io,dmcgowan/docker,KarthikNayak/docker,jongiddy/docker,noironetworks/docker,dims/docker,endophage/docker,mikedougherty/docker,Tenk42/docker,x1022as/docker,ckeyer/docker,prertik/docker,diogomonica/docker,coolljt0725/docker,jc-m/docker,thaJeztah/docker.github.io,pramodhkp/moby,HideoYamauchi/docker,joaofnfernandes/docker.github.io,ivansaracino/docker,JMesser81/docker,ColinHebert/docker,erikh/docker,aidanhs/docker,denverdino/docker.github.io,asbjornenge/docker,shhsu/docker,paralin/docker,shubheksha/docker.github.io,icecrime/docker,allencloud/docker,mohmost12/docker,jzwlqx/denverdino.github.io,flavio/docker,alexisbellido/docker.github.io,lixiaobing10051267/docker,mkumatag/docker,menglingwei/denverdino.github.io,yasiramin10p/moby,laijs/moby,miminar/docker,coreos/docker,bluebreezecf/docker,akira-baruah/docker,containers/storage,kencochrane/docker,joeuo/docker.github.io,BenHall/docker,splunk/docker,mbanikazemi/docker,jlhawn/docker,rhatdan/storage,johnstep/docker.github.io,rremer/moby,davinashreddy/docker,isubuz/docker,LaynePeng/docker,cr7pt0gr4ph7/docker,hypriot/docker,sheimi/docker,ailispaw/docker,shin-/docker.github.io,AkihiroSuda/docker,djs55/docker,djs55/docker,hustcat/docker,Shopify/docker,LuisBosquez/docker.github.io,diogomonica/docker,gnailuy/docker,michael-holzheu/docker,prertik/docker,containers/storage,twaugh/docker,shubheksha/docker.github.io,jimjag/docker,lixiaobing1/docker,joaofnfernandes/docker.github.io,PatrickLang/moby,dgageot/docker,rillig/docker.github.io,mixja/docker,hqhq/moby,cyphar/docker,carolfh/docker,flavio/docker,stevvooe/docker,errordeveloper/docker,afein/docker,wenchma/docker,dccurtis/docker,q384566678/docker,jongiddy/docker,mahak/docker,Mokolea/docker,qudongfang/docker,miminar/docker,sterchelen/docker,dongjoon-hyun/docker,luxas/docker,umerazad/docker,xiekeyang/docker,bdwill/docker.github.io,aidanhs/docker,icaoweiwei/docker,nghiant2710/docker,rhatdan/docker,LuisBosquez/docker.github.io,anortef/docker,johnstep/moby-moby,ndeloof/docker,danix800/docker.github.io,supasate/docker,ajaymdesai/docker,rancher/docker,jthelin/docker,solganik/docker,tagomoris/docker,OnePaaS/docker,AkihiroSuda/docker,jlebon/docker,sean-jc/docker,cmehay/docker-1,phiroict/docker,13W/docker,charleswhchan/docker,sdurrheimer/docker,rancher/docker,mahak/docker,kimh/docker,mikedougherty/docker,solganik/docker,hqhq/moby,ajaymdesai/docker,willmtemple/docker,upmio/docker,yummypeng/docker,tophj-ibm/docker,justyntemme/docker,scotttlin/docker,TrumanLing/docker,cyphar/docker,POLJM242/docker,shishir-a412ed/docker,thaJeztah/docker,JimGalasyn/docker.github.io,tophj-ibm/moby,kimh/docker,scotttlin/docker,vdemeester/docker,Mashimiao/docker,gao-feng/docker,asbjornenge/docker,harche/docker,ibuildthecloud/docker,sterchelen/docker,allencloud/docker,dperny/docker,mathewkoshy493/docker,londoncalling/docker.github.io,tagomoris/docker,dnephin/docker,cmehay/docker-1,zhangjianfnst/docker,tonistiigi/docker,BSWANG/denverdino.github.io,cpuguy83/docker,YujiOshima/docker,kolyshkin/docker,rkazak/docker,mikebrow/docker,upmio/docker,naveed-jamil-tenpearls/moby,sanscontext/docker.github.io