Remove duplication checking for the existence of endpoint
Remove duplication checking for the existence of endpoint

CreateEndpoint will check if the endpoint exist or not, so there is no
need to check before call CreatEndpoint in connectToNetwork since
checking the existence of the endpoint could take much time especially
if we use external K-V store, this would slow down the staring of container.

Signed-off-by: Lei Jitang <9ac444d2b5df3db1f31aa1c6462ac8e9e2bde241@huawei.com>

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