Fix postRunProcessing behavior during docker build
Fix postRunProcessing behavior during docker build

If Windows updates are being applied via a RUN command in a docker build, the build will not stop if there was a failure in postRunProcessing.  To enable this behavior, we explicitly set the exit code of the container to a failure if postRunProcessing fails during servicing container step.  For completeness, also avoid running servicing operation if the original exit code of the container is non-zero so that original failure exit code does not get overwritten.

Signed-off-by: Stefan J. Wernli <83146b3f843e2cabf52cc6abaa32c20ae61a0a7e@microsoft.com>

13W/docker,bearstech/moby,sarnautov/moby,stevvooe/docker,shishir-a412ed/docker,johnstep/docker.github.io,mahak/docker,eskaaren/docker,tklauser/docker,AkihiroSuda/docker,coreos/docker,jvanz/docker,bonczj/moby-json-file-logger,kolyshkin/docker,POLJM242/docker,bluebreezecf/docker,sterchelen/docker,docker/docker,containers/storage,bdwill/docker.github.io,jzwlqx/denverdino.github.io,dperny/docker,shin-/docker.github.io,shin-/docker.github.io,resin-io/docker,aduermael/docker.github.io,dccurtis/docker,cr7pt0gr4ph7/docker,whuwxl/docker,yosifkit/docker,dnephin/docker,kojiromike/docker,kolyshkin/moby,sterchelen/docker,dnephin/docker,pecameron/docker,konstruktoid/docker-upstream,denverdino/denverdino.github.io,laijs/moby,denverdino/docker.github.io,allencloud/docker,JMesser81/docker,ibuildthecloud/docker,xiekeyang/docker,xiaods/docker,nghiant2710/docker,bearstech/moby,dsau/docker,jzwlqx/denverdino.github.io,miminar/docker,dongjoon-hyun/docker,dongjoon-hyun/docker,ibuildthecloud/docker,raja-sami-10p/moby,cpuguy83/docker,mkumatag/docker,justincormack/docker,imkin/moby,bdwill/docker.github.io,yongtang/docker,denverdino/denverdino.github.io,hypriot/docker,ColinHebert/docker,Syntaxide/docker,gschaetz/moby,tagomoris/docker,erikstmartin/docker,HuKeping/docker,menglingwei/denverdino.github.io,shin-/docker.github.io,miminar/docker,noironetworks/docker,nalind/docker,abhinavdahiya/docker,moul/docker,docker-zh/docker.github.io,mixja/docker,nalind/docker,Shopify/docker,KarthikNayak/docker,pramodhkp/moby,erikh/docker,alexisbellido/docker.github.io,portworx/docker,ColinHebert/docker,tmp6154/docker,crosbymichael/docker,haveatry/docker,afein/docker,tonistiigi/docker,coolljt0725/docker,flavio/docker,YuPengZTE/docker,londoncalling/docker.github.io,medallia/docker,endophage/docker,miminar/docker,tagomoris/docker,justyntemme/docker,q384566678/docker,resin-io/docker,rhatdan/docker,djs55/docker,mikedougherty/docker,tkopczynski/docker,mkumatag/docker,konstruktoid/docker-1,joeuo/docker.github.io,duglin/docker,lixiaobing1/docker,sdurrheimer/docker,naveed-jamil-tenpearls/moby,cloudflare/docker,pecameron/docker,sanscontext/docker.github.io,toli/docker,endophage/docker,Shopify/docker,rremer/moby,anweiss/docker.github.io,PatrickLang/moby,shishir-a412ed/docker,coreos/docker,ffoysal/docker,crosbymichael/docker,thaJeztah/docker,michael-holzheu/docker,brahmaroutu/docker,mike1729/docker,joeuo/docker.github.io,gnailuy/docker,xiekeyang/docker,moypray/docker,jameszhan/docker,Shopify/docker,mgoelzer/docker,bdwill/docker.github.io,shhsu/docker,thaJeztah/docker,dccurtis/docker,darrenstahlmsft/moby,docker/docker,denverdino/denverdino.github.io,kolyshkin/docker,gigidwan/docker,dgageot/docker,JimGalasyn/docker.github.io,ffoysal/docker,jongiddy/docker,darrenstahlmsft/docker,HuKeping/docker,maxamillion/docker,mtrmac/docker,prertik/docker,docker-zh/docker.github.io,denverdino/docker.github.io,trebonian/docker,JMesser81/docker,dgageot/docker,brahmaroutu/docker,fcrisciani/docker,raja-sami-10p/moby,shubheksha/docker.github.io,mikedougherty/docker,alfred-landrum/docker,naveed-jamil-tenpearls/moby,mike1729/docker,containers/storage,moypray/docker,danyalKhaliq10p/moby,allencloud/docker,ripcurld0/moby,ndeloof/docker,justyntemme/docker,jimjag/docker,kojiromike/docker,unclejack/docker,hypriot/docker,xiaods/docker,13W/docker,amatsus/docker,harche/docker,Ramzec/docker,qudongfang/docker,yongtang/docker,jimjag/docker,rancher/docker,Ramzec/docker,bonczj/moby-json-file-logger,KingEmet/docker,dperny/docker,ajaymdesai/docker,coolljt0725/docker,paralin/docker,thtanaka/docker,gjaskiewicz/moby,londoncalling/docker.github.io,mikedougherty/docker,tmp6154/docker,johnstep/moby-moby,Syntaxide/docker,aduermael/docker.github.io,mahak/docker,jthelin/docker,laijs/docker,asbjornenge/docker,mtesselH/docker,projectatomic/docker,ripcurld0/moby,moul/docker,twaugh/docker,Ramzec/docker,darrenstahlmsft/docker,tonistiigi/docker,mtrmac/docker,rremer/moby,LuisBosquez/docker.github.io,toli/docker,shin-/docker.github.io,yasiramin10p/moby,PatrickLang/moby,justincormack/docker,jthelin/docker,docker/docker.github.io,yosifkit/docker,tophj-ibm/moby,mtanlee/docker,afein/docker,zhuguihua/docker,joaofnfernandes/docker.github.io,kencochrane/docker,trebonian/docker,qudongfang/docker,projectatomic/docker,pramodhkp/moby,stainboy/docker,docker/docker.github.io,johnstep/docker.github.io,phiroict/docker,asbjornenge/docker,mtesselH/docker,shishir-a412ed/docker,tkopczynski/docker,kolyshkin/moby,LuisBosquez/docker.github.io,kencochrane/docker,cloudflare/docker,abhinavdahiya/docker,yasiramin10p/moby,JimGalasyn/docker.github.io,liaoqingwei/docker,tophj-ibm/docker,toli/docker,splunk/docker,amatsus/docker,YuPengZTE/docker,sfsmithcha/docker,BSWANG/denverdino.github.io,coolljt0725/docker,JMesser81/docker,jhorwit2/docker,mgoelzer/docker,mahak/docker,thtanaka/docker,endophage/docker,ibuildthecloud/docker,akira-baruah/docker,laijs/docker,yasiramin10p/moby,dims/docker,danix800/docker.github.io,dsheets/moby,pecameron/docker,13W/docker,akira-baruah/docker,joeuo/docker.github.io,estesp/docker,docker/docker.github.io,tklauser/docker,joeuo/docker.github.io,kencochrane/docker,rillig/docker.github.io,danyalKhaliq10p/moby,ndeloof/docker,dperny/docker,noxiouz/docker,alexisbellido/docker.github.io,sfsmithcha/docker,abhinavdahiya/docker,moul/docker,maxamillion/docker,moby/moby,trebonian/docker,SvenDowideit/docker,jameszhan/docker,xuxinkun/docker,Mokolea/docker,vdemeester/docker,KingEmet/docker,cloudflare/docker,joaofnfernandes/docker.github.io,thaJeztah/docker.github.io,mstanleyjones/docker,jvanz/docker,gdevillele/docker.github.io,danix800/docker.github.io,sanscontext/docker.github.io,gschaetz/moby,jwhonce/docker,raja-sami-10p/moby,alexisbellido/docker.github.io,moypray/docker,madhanrm/docker,gjaskiewicz/moby,troy0820/docker.github.io,dims/docker,pradipd/moby,x1022as/docker,BSWANG/denverdino.github.io,icaoweiwei/docker,menglingwei/denverdino.github.io,vdemeester/docker,sanjeo/docker,konstruktoid/docker-1,gnailuy/docker,jlebon/docker,erikstmartin/docker,mtesselH/docker,maxamillion/docker,aduermael/docker.github.io,paralin/docker,mohmost12/docker,jwhonce/docker,docker/docker.github.io,laijs/docker,madhanrm/docker,BSWANG/denverdino.github.io,yosifkit/docker,moby/moby,cpuguy83/docker,projectatomic/docker,Morsicus/docker,imkin/moby,duglin/docker,londoncalling/docker.github.io,kunalkushwaha/docker,KarthikNayak/docker,HideoYamauchi/docker,gschaetz/moby,dmcgowan/docker,portworx/docker,tkopczynski/docker,KarthikNayak/docker,jvanz/docker,AkihiroSuda/docker,mohmost12/docker,erikh/docker,crosbymichael/docker,moby/moby,johnstep/docker.github.io,LuisBosquez/docker.github.io,bluebreezecf/docker,kunalkushwaha/docker,bearstech/moby,afein/docker,docker-zh/docker.github.io,JimGalasyn/docker.github.io,portworx/docker,gdevillele/docker.github.io,docker/docker,johnstep/moby-moby,gnailuy/docker,noironetworks/docker,erikstmartin/docker,ajaymdesai/docker,thaJeztah/docker,jimjag/docker,charleswhchan/docker,mixja/docker,mstanleyjones/docker,michelvocks/docker,unclejack/docker,alfred-landrum/docker,yummypeng/docker,yp-engineering/docker,mgoelzer/docker,charleswhchan/docker,gnailuy/docker,mtrmac/docker,jzwlqx/denverdino.github.io,cpuguy83/docker,nghiant2710/docker,justyntemme/docker,troy0820/docker.github.io,dccurtis/docker,resin-io/docker,shin-/docker.github.io,Mokolea/docker,mahak/docker,sanjeo/docker,ajaymdesai/docker,mtanlee/docker,sanscontext/docker.github.io,harche/docker,Morsicus/docker,laijs/moby,joeuo/docker.github.io,tophj-ibm/moby,naveed-jamil-tenpearls/moby,whuwxl/docker,docker-zh/docker.github.io,13W/docker,allencloud/docker,jameszhan/docker,rillig/docker.github.io,moby/moby,thtanaka/docker,gjaskiewicz/moby,darrenstahlmsft/moby,KingEmet/docker,djs55/docker,jongiddy/docker,tophj-ibm/docker,justincormack/docker,rremer/moby,phiroict/docker,darrenstahlmsft/docker,medallia/docker,erikh/docker,HideoYamauchi/docker,denverdino/docker.github.io,alexisbellido/docker.github.io,yummypeng/docker,q384566678/docker,srust/docker,moul/docker,michelvocks/docker,splunk/docker,dmcgowan/docker,tophj-ibm/docker,imkin/moby,bluebreezecf/docker,phiroict/docker,flavio/docker,diogomonica/docker,13W/docker,bonczj/moby-json-file-logger,cyphar/docker,alexisbellido/docker.github.io,tklauser/docker,darrenstahlmsft/moby,sfsmithcha/docker,nghiant2710/docker,q384566678/docker,konstruktoid/docker-1,harche/docker,pradipd/moby,flavio/docker,thaJeztah/docker.github.io,johnstep/docker.github.io,cr7pt0gr4ph7/docker,cyphar/docker,paralin/docker,sanscontext/docker.github.io,gigidwan/docker,menglingwei/denverdino.github.io,danix800/docker.github.io,liaoqingwei/docker,xuxinkun/docker,rillig/docker.github.io,pradipd/moby,rhatdan/docker,stainboy/docker,amatsus/docker,mike1729/docker,anweiss/docker.github.io,danyalKhaliq10p/moby,HuKeping/docker,fcrisciani/docker,dgageot/docker,dims/docker,shubheksha/docker.github.io,sarnautov/moby,eskaaren/docker,docker-zh/docker.github.io,estesp/docker,BSWANG/denverdino.github.io,lixiaobing1/docker,cyphar/docker,anweiss/docker.github.io,twaugh/docker,thaJeztah/docker.github.io,mikebrow/docker,catinthesky/docker,gigidwan/docker,prertik/docker,hypriot/docker,hqhq/moby,x1022as/docker,dsheets/moby,tagomoris/docker,gdevillele/docker.github.io,medallia/docker,unclejack/docker,shubheksha/docker.github.io,dongjoon-hyun/docker,pramodhkp/moby,ibuildthecloud/docker,dsau/docker,Mokolea/docker,estesp/docker,containers/storage,paralin/docker,rhatdan/docker,flavio/docker,noironetworks/docker,splunk/docker,AkihiroSuda/docker,mikebrow/docker,joaofnfernandes/docker.github.io,thaJeztah/docker.github.io,kunalkushwaha/docker,michael-holzheu/docker,yp-engineering/docker,noxiouz/docker,jlebon/docker,menglingwei/denverdino.github.io,nalind/docker,denverdino/docker.github.io,nawawi/docker,yp-engineering/docker,tophj-ibm/moby,asbjornenge/docker,coreos/docker,wenchma/docker,sdurrheimer/docker,shubheksha/docker.github.io,catinthesky/docker,docker/docker.github.io,diogomonica/docker,msabansal/docker,sterchelen/docker,cr7pt0gr4ph7/docker,jlhawn/docker,phiroict/docker,SvenDowideit/docker,sanscontext/docker.github.io,liaoqingwei/docker,anweiss/docker.github.io,menglingwei/denverdino.github.io,charleszheng44/moby,bdwill/docker.github.io,srust/docker,denverdino/denverdino.github.io,xuxinkun/docker,jlebon/docker,stevvooe/docker,phiroict/docker,prertik/docker,ColinHebert/docker,denverdino/docker.github.io,icaoweiwei/docker,denverdino/denverdino.github.io,stevvooe/docker,gdevillele/docker.github.io,charleswhchan/docker,lixiaobing1/docker,brahmaroutu/docker,dmcgowan/docker,jzwlqx/denverdino.github.io,vdemeester/docker,dnephin/docker,lixiaobing10051267/docker,scotttlin/docker,nalind/docker,johnstep/docker.github.io,jlhawn/docker,Morsicus/docker,jhorwit2/docker,duglin/docker,xiaods/docker,tmp6154/docker,msabansal/docker,thaJeztah/docker,shhsu/docker,sarnautov/moby,xiekeyang/docker,mixja/docker,mikebrow/docker,ripcurld0/moby,mohmost12/docker,rillig/docker.github.io,jimjag/docker,konstruktoid/docker-upstream,YuPengZTE/docker,diogomonica/docker,twaugh/docker,johnstep/moby-moby,PatrickLang/moby,sanjeo/docker,Ramzec/docker,cpuguy83/docker,fcrisciani/docker,bearstech/moby,rhatdan/storage,noxiouz/docker,haveatry/docker,nawawi/docker,anweiss/docker.github.io,kojiromike/docker,BSWANG/denverdino.github.io,mstanleyjones/docker,SvenDowideit/docker,charleszheng44/moby,dsau/docker,konstruktoid/docker-upstream,srust/docker,msabansal/docker,laijs/moby,medallia/docker,catinthesky/docker,mtanlee/docker,michael-holzheu/docker,alfred-landrum/docker,thaJeztah/docker.github.io,aduermael/docker.github.io,scotttlin/docker,nawawi/docker,LuisBosquez/docker.github.io,lixiaobing10051267/docker,rancher/docker,joaofnfernandes/docker.github.io,ffoysal/docker,djs55/docker,trebonian/docker,kolyshkin/moby,Syntaxide/docker,rhatdan/storage,icaoweiwei/docker,konstruktoid/docker-upstream,POLJM242/docker,danix800/docker.github.io,bdwill/docker.github.io,joaofnfernandes/docker.github.io,hqhq/moby,shhsu/docker,tianon/docker,scotttlin/docker,londoncalling/docker.github.io,dsheets/moby,zhuguihua/docker,jzwlqx/denverdino.github.io,shubheksha/docker.github.io,lixiaobing10051267/docker,troy0820/docker.github.io,rhatdan/storage,x1022as/docker,JimGalasyn/docker.github.io,jwhonce/docker,Mokolea/docker,rancher/docker,ibuildthecloud/docker,tonistiigi/docker,yummypeng/docker,troy0820/docker.github.io,eskaaren/docker,zhuguihua/docker,tianon/docker,JimGalasyn/docker.github.io,madhanrm/docker,haveatry/docker,AkihiroSuda/docker,LuisBosquez/docker.github.io,yosifkit/docker,michelvocks/docker,wenchma/docker,qudongfang/docker,whuwxl/docker,sdurrheimer/docker,yongtang/docker,londoncalling/docker.github.io,jongiddy/docker,stainboy/docker,wenchma/docker,charleszheng44/moby,gdevillele/docker.github.io,jhorwit2/docker,ndeloof/docker,mkumatag/docker,hqhq/moby,nawawi/docker,jlhawn/docker,HideoYamauchi/docker