Fix issue with bundles dir volume
Fix issue with bundles dir volume

The bundles dir used to be automatically made a volume if BINDDIR was
not set.

The `PKGCACHE_*` stuff was added recently which gets added to
`DOCKER_MOUNT`. This breaks the case where someone wants to use the
package cache (DOCKER_INCREMENTAL_BINARY is enabled) but has not
specified a bind dir but needs the bundles dir made a volume.

Moves the package cache handling to after the bundles dir is made a
volume.

Before this patch, if you have `DOCKER_GRAPHDRIVER` set to anything
other than vfs, the tests in the daemon suite (and swarm suite, and
registry suite) will fail to run since they cannot startup a daemon
(except for speicifc cases where <driver> over <driver> is possible,
like devmapper).

Signed-off-by: Brian Goff <dc73d0991b982a8303e713ef531a313af77e242a@gmail.com>

catinthesky/docker,mtesselH/docker,jlhawn/docker,moul/docker,stevvooe/docker,AkihiroSuda/docker,johnstep/moby-moby,rhatdan/docker,sdurrheimer/docker,shishir-a412ed/docker,alfred-landrum/docker,hqhq/moby,mike1729/docker,nawawi/docker,estesp/docker,dmcgowan/docker,mahak/docker,noironetworks/docker,akira-baruah/docker,nalind/docker,rhatdan/docker,bonczj/moby-json-file-logger,trebonian/docker,docker/docker,mikebrow/docker,coolljt0725/docker,bonczj/moby-json-file-logger,HideoYamauchi/docker,bearstech/moby,Syntaxide/docker,sarnautov/moby,hqhq/moby,mkumatag/docker,coreos/docker,ibuildthecloud/docker,paralin/docker,justincormack/docker,liaoqingwei/docker,coolljt0725/docker,mikedougherty/docker,rancher/docker,tianon/docker,ColinHebert/docker,harche/docker,mkumatag/docker,charleszheng44/moby,mixja/docker,scotttlin/docker,shhsu/docker,stevvooe/docker,fcrisciani/docker,SvenDowideit/docker,sdurrheimer/docker,mtrmac/docker,konstruktoid/docker-upstream,allencloud/docker,jlhawn/docker,noironetworks/docker,michael-holzheu/docker,coolljt0725/docker,duglin/docker,charleszheng44/moby,amatsus/docker,yosifkit/docker,konstruktoid/docker-1,konstruktoid/docker-1,gnailuy/docker,haveatry/docker,miminar/docker,naveed-jamil-tenpearls/moby,tophj-ibm/moby,ibuildthecloud/docker,jvanz/docker,noironetworks/docker,haveatry/docker,yummypeng/docker,ibuildthecloud/docker,thtanaka/docker,naveed-jamil-tenpearls/moby,nalind/docker,q384566678/docker,mahak/docker,darrenstahlmsft/docker,kunalkushwaha/docker,mtesselH/docker,michael-holzheu/docker,stevvooe/docker,gschaetz/moby,kojiromike/docker,darrenstahlmsft/moby,tklauser/docker,q384566678/docker,mtrmac/docker,shishir-a412ed/docker,raja-sami-10p/moby,mahak/docker,yongtang/docker,ndeloof/docker,coreos/docker,resin-io/docker,endophage/docker,lixiaobing10051267/docker,gnailuy/docker,djs55/docker,endophage/docker,ndeloof/docker,dperny/docker,bearstech/moby,pramodhkp/moby,jvanz/docker,crosbymichael/docker,estesp/docker,tonistiigi/docker,ffoysal/docker,nawawi/docker,raja-sami-10p/moby,justincormack/docker,qudongfang/docker,erikstmartin/docker,flavio/docker,KarthikNayak/docker,q384566678/docker,Ramzec/docker,pradipd/moby,yasiramin10p/moby,JMesser81/docker,jthelin/docker,yasiramin10p/moby,cyphar/docker,dsheets/moby,yasiramin10p/moby,ripcurld0/moby,jimjag/docker,allencloud/docker,flavio/docker,Ramzec/docker,AkihiroSuda/docker,kolyshkin/moby,whuwxl/docker,JMesser81/docker,mstanleyjones/docker,unclejack/docker,dmcgowan/docker,imkin/moby,PatrickLang/moby,alfred-landrum/docker,Syntaxide/docker,laijs/docker,tmp6154/docker,danyalKhaliq10p/moby,shhsu/docker,cpuguy83/docker,rremer/moby,Mokolea/docker,johnstep/moby-moby,paralin/docker,lixiaobing1/docker,ColinHebert/docker,mixja/docker,kolyshkin/moby,yosifkit/docker,vdemeester/docker,kojiromike/docker,crosbymichael/docker,moby/moby,darrenstahlmsft/moby,johnstep/moby-moby,rremer/moby,nawawi/docker,laijs/moby,darrenstahlmsft/docker,gjaskiewicz/moby,dgageot/docker,dims/docker,SvenDowideit/docker,Mokolea/docker,ibuildthecloud/docker,tmp6154/docker,yongtang/docker,dgageot/docker,JMesser81/docker,madhanrm/docker,SvenDowideit/docker,resin-io/docker,tklauser/docker,cyphar/docker,haveatry/docker,AkihiroSuda/docker,gnailuy/docker,flavio/docker,djs55/docker,x1022as/docker,tophj-ibm/moby,mikebrow/docker,Mokolea/docker,maxamillion/docker,prertik/docker,laijs/moby,coreos/docker,danyalKhaliq10p/moby,alfred-landrum/docker,bearstech/moby,jthelin/docker,xuxinkun/docker,sterchelen/docker,erikh/docker,moypray/docker,madhanrm/docker,srust/docker,tophj-ibm/moby,maxamillion/docker,msabansal/docker,allencloud/docker,charleszheng44/moby,cyphar/docker,konstruktoid/docker-upstream,sterchelen/docker,shhsu/docker,PatrickLang/moby,yummypeng/docker,thtanaka/docker,thaJeztah/docker,darrenstahlmsft/docker,imkin/moby,Mokolea/docker,mahak/docker,paralin/docker,tophj-ibm/docker,endophage/docker,tianon/docker,amatsus/docker,jameszhan/docker,paralin/docker,laijs/docker,dccurtis/docker,gschaetz/moby,moby/moby,miminar/docker,yummypeng/docker,erikh/docker,harche/docker,nalind/docker,tophj-ibm/docker,mike1729/docker,dperny/docker,rancher/docker,PatrickLang/moby,sarnautov/moby,yongtang/docker,docker/docker,thaJeztah/docker,catinthesky/docker,rremer/moby,darrenstahlmsft/moby,mtesselH/docker,srust/docker,liaoqingwei/docker,jameszhan/docker,tmp6154/docker,vdemeester/docker,dsheets/moby,x1022as/docker,liaoqingwei/docker,pramodhkp/moby,qudongfang/docker,thaJeztah/docker,scotttlin/docker,kolyshkin/docker,ibuildthecloud/docker,dims/docker,Syntaxide/docker,moypray/docker,gjaskiewicz/moby,lixiaobing10051267/docker,jlhawn/docker,lixiaobing1/docker,Ramzec/docker,AkihiroSuda/docker,fcrisciani/docker,dperny/docker,KingEmet/docker,catinthesky/docker,mikedougherty/docker,whuwxl/docker,djs55/docker,scotttlin/docker,KarthikNayak/docker,konstruktoid/docker-upstream,gjaskiewicz/moby,raja-sami-10p/moby,thaJeztah/docker,jimjag/docker,fcrisciani/docker,nalind/docker,x1022as/docker,rhatdan/docker,ripcurld0/moby,unclejack/docker,mtrmac/docker,jameszhan/docker,kolyshkin/moby,tophj-ibm/docker,HideoYamauchi/docker,unclejack/docker,YuPengZTE/docker,akira-baruah/docker,tonistiigi/docker,jwhonce/docker,rancher/docker,msabansal/docker,dgageot/docker,ColinHebert/docker,konstruktoid/docker-1,sdurrheimer/docker,KingEmet/docker,moby/moby,pradipd/moby,danyalKhaliq10p/moby,qudongfang/docker,msabansal/docker,hqhq/moby,prertik/docker,POLJM242/docker,ndeloof/docker,michael-holzheu/docker,trebonian/docker,miminar/docker,mstanleyjones/docker,naveed-jamil-tenpearls/moby,resin-io/docker,dccurtis/docker,maxamillion/docker,jimjag/docker,amatsus/docker,yosifkit/docker,kojiromike/docker,dsheets/moby,ffoysal/docker,xuxinkun/docker,moul/docker,laijs/docker,kolyshkin/docker,KingEmet/docker,jvanz/docker,cpuguy83/docker,bonczj/moby-json-file-logger,HideoYamauchi/docker,pradipd/moby,pramodhkp/moby,yosifkit/docker,ffoysal/docker,diogomonica/docker,erikstmartin/docker,kunalkushwaha/docker,lixiaobing10051267/docker,laijs/moby,mkumatag/docker,thtanaka/docker,YuPengZTE/docker,lixiaobing1/docker,dmcgowan/docker,moypray/docker,xuxinkun/docker,moul/docker,konstruktoid/docker-upstream,moby/moby,mike1729/docker,cpuguy83/docker,tonistiigi/docker,kencochrane/docker,moul/docker,crosbymichael/docker,dccurtis/docker,kencochrane/docker,sarnautov/moby,mikedougherty/docker,kunalkushwaha/docker,docker/docker,ripcurld0/moby,madhanrm/docker,erikh/docker,justincormack/docker,tklauser/docker,dims/docker,jwhonce/docker,jimjag/docker,duglin/docker,sterchelen/docker,shishir-a412ed/docker,KarthikNayak/docker,duglin/docker,nawawi/docker,bearstech/moby,whuwxl/docker,erikstmartin/docker,cpuguy83/docker,flavio/docker,diogomonica/docker,gschaetz/moby,trebonian/docker,POLJM242/docker,srust/docker,mixja/docker,mstanleyjones/docker,trebonian/docker,YuPengZTE/docker,prertik/docker,Ramzec/docker,jwhonce/docker,mikebrow/docker,kencochrane/docker,gnailuy/docker,diogomonica/docker,imkin/moby,estesp/docker,vdemeester/docker,harche/docker