Fix race condition in `docker-compose run`
Fix race condition in `docker-compose run`

We shouldn't start the container before handing it off to dockerpty -
dockerpty will start it after attaching, which is the correct order.
Otherwise the container might exit before we attach to it, which can
lead to weird bugs.

Signed-off-by: Aanand Prasad <94fc4f3e3d0be608b3ed7b8529ff28d2a445cce1@gmail.com>

joaofnfernandes/docker.github.io,mchasal/compose,Dakno/compose,DoubleMalt/compose,ionrock/compose,shin-/docker.github.io,artemkaint/compose,mnuessler/compose,pspierce/compose,GM-Alex/compose,KevinGreene/compose,saada/compose,zhangspook/compose,denverdino/docker.github.io,thaJeztah/compose,mark-adams/compose,bfirsh/fig,jonaseck2/compose,dbdd4us/compose,talolard/compose,josephpage/compose,gdevillele/docker.github.io,prologic/compose,menglingwei/denverdino.github.io,tiry/compose,aanand/fig,charleswhchan/compose,denverdino/denverdino.github.io,rillig/docker.github.io,shubheksha/docker.github.io,ggtools/compose,unodba/compose,brunocascio/compose,joaofnfernandes/docker.github.io,jgrowl/compose,JimGalasyn/docker.github.io,aduermael/docker.github.io,troy0820/docker.github.io,thieman/compose,gtrdotmcs/compose,benhamill/compose,alexisbellido/docker.github.io,xydinesh/compose,LuisBosquez/docker.github.io,mrfuxi/compose,jeanpralo/compose,thaJeztah/docker.github.io,viranch/compose,Katlean/fig,anweiss/docker.github.io,vlajos/compose,aanand/fig,johnstep/docker.github.io,ZJaffee/compose,phiroict/docker,artemkaint/compose,menglingwei/denverdino.github.io,joaofnfernandes/docker.github.io,jessekl/compose,prologic/compose,gdevillele/docker.github.io,menglingwei/denverdino.github.io,joeuo/docker.github.io,albers/compose,docker/docker.github.io,genki/compose,noironetworks/compose,KalleDK/compose,Yelp/docker-compose,mbailey/compose,shubheksha/docker.github.io,sebglazebrook/compose,mdaue/compose,bsmr-docker/compose,au-phiware/compose,simonista/compose,alunduil/fig,browning/compose,TheDataShed/compose,johnstep/docker.github.io,JimGalasyn/docker.github.io,andrewgee/compose,denverdino/denverdino.github.io,anweiss/docker.github.io,mosquito/docker-compose,shubheksha/docker.github.io,sanscontext/docker.github.io,jrabbit/compose,ekristen/compose,unodba/compose,phiroict/docker,johnstep/docker.github.io,mosquito/docker-compose,joeuo/docker.github.io,JimGalasyn/docker.github.io,sdurrheimer/compose,docker-zh/docker.github.io,jzwlqx/denverdino.github.io,docker-zh/docker.github.io,jessekl/compose,johnstep/docker.github.io,ekristen/compose,VinceBarresi/compose,sebglazebrook/compose,gdevillele/docker.github.io,alexandrev/compose,simonista/compose,bdwill/docker.github.io,danix800/docker.github.io,sanscontext/docker.github.io,sdurrheimer/compose,RobertNorthard/compose,charleswhchan/compose,denverdino/docker.github.io,mnowster/compose,iamluc/compose,dopry/compose,denverdino/docker.github.io,iamluc/compose,thaJeztah/docker.github.io,menglingwei/denverdino.github.io,docker/docker.github.io,uvgroovy/compose,aduermael/docker.github.io,hoogenm/compose,bobphill/compose,anweiss/docker.github.io,jzwlqx/denverdino.github.io,screwgoth/compose,au-phiware/compose,BSWANG/denverdino.github.io,twitherspoon/compose,denverdino/docker.github.io,bbirand/compose,zhangspook/compose,lukemarsden/compose,shubheksha/docker.github.io,ionrock/compose,shin-/compose,danix800/docker.github.io,saada/compose,troy0820/docker.github.io,anweiss/docker.github.io,d2bit/compose,thaJeztah/docker.github.io,rgbkrk/compose,BSWANG/denverdino.github.io,glogiotatidis/compose,sanscontext/docker.github.io,thaJeztah/docker.github.io,xydinesh/compose,jeanpralo/compose,joeuo/docker.github.io,dockerhn/compose,mdaue/compose,ralphtheninja/compose,mchasal/compose,rgbkrk/compose,BSWANG/denverdino.github.io,bdwill/docker.github.io,shubheksha/docker.github.io,londoncalling/docker.github.io,sanscontext/docker.github.io,rillig/docker.github.io,kojiromike/compose,qzio/compose,kikkomep/compose,lmesz/compose,denverdino/compose,shin-/compose,rillig/docker.github.io,TheDataShed/compose,alexisbellido/docker.github.io,VinceBarresi/compose,DoubleMalt/compose,calou/compose,bdwill/docker.github.io,jgrowl/compose,aduermael/docker.github.io,danix800/docker.github.io,tangkun75/compose,johnstep/docker.github.io,ralphtheninja/compose,glogiotatidis/compose,philwrenn/compose,JimGalasyn/docker.github.io,denverdino/docker.github.io,jzwlqx/denverdino.github.io,mnuessler/compose,thieman/compose,alexandrev/compose,shin-/docker.github.io,hoogenm/compose,swoopla/compose,jorgeLuizChaves/compose,runcom/compose,benhamill/compose,jrabbit/compose,shin-/docker.github.io,d2bit/compose,brunocascio/compose,shin-/docker.github.io,moxiegirl/compose,LuisBosquez/docker.github.io,amitsaha/compose,bdwill/docker.github.io,LuisBosquez/docker.github.io,BSWANG/denverdino.github.io,qzio/compose,mindaugasrukas/compose,j-fuentes/compose,feelobot/compose,dnephin/compose,kojiromike/compose,docker/docker.github.io,jiekechoo/compose,danix800/docker.github.io,cgvarela/compose,joaofnfernandes/docker.github.io,tangkun75/compose,mnowster/compose,andrewgee/compose,talolard/compose,MSakamaki/compose,rillig/docker.github.io,docker-zh/docker.github.io,docker/docker.github.io,TomasTomecek/compose,Chouser/compose,MSakamaki/compose,kikkomep/compose,mindaugasrukas/compose,nhumrich/compose,docker-zh/docker.github.io,swoopla/compose,tpounds/compose,troy0820/docker.github.io,jonaseck2/compose,vdemeester/compose,troy0820/docker.github.io,cclauss/compose,noironetworks/compose,funkyfuture/docker-compose,aduermael/docker.github.io,gtrdotmcs/compose,marcusmartins/compose,dilgerma/compose,joeuo/docker.github.io,alexisbellido/docker.github.io,dockerhn/compose,michael-k/docker-compose,denverdino/denverdino.github.io,dnephin/compose,lukemarsden/compose,nhumrich/compose,JimGalasyn/docker.github.io,joaofnfernandes/docker.github.io,shin-/docker.github.io,mrfuxi/compose,rstacruz/compose,calou/compose,mbailey/compose,screwgoth/compose,rstacruz/compose,viranch/compose,lmesz/compose,dbdd4us/compose,mohitsoni/compose,dopry/compose,RobertNorthard/compose,phiroict/docker,londoncalling/docker.github.io,alexisbellido/docker.github.io,londoncalling/docker.github.io,jzwlqx/denverdino.github.io,albers/compose,LuisBosquez/docker.github.io,docker-zh/docker.github.io,anweiss/docker.github.io,bdwill/docker.github.io,vdemeester/compose,cgvarela/compose,bbirand/compose,bsmr-docker/compose,Chouser/compose,ChrisChinchilla/compose,mohitsoni/compose,Dakno/compose,vlajos/compose,josephpage/compose,joeuo/docker.github.io,thaJeztah/docker.github.io,tiry/compose,runcom/compose,gdevillele/docker.github.io,uvgroovy/compose,sanscontext/docker.github.io,jzwlqx/denverdino.github.io,genki/compose,GM-Alex/compose,goloveychuk/compose,jorgeLuizChaves/compose,j-fuentes/compose,londoncalling/docker.github.io,cclauss/compose,marcusmartins/compose,browning/compose,amitsaha/compose,Yelp/docker-compose,schmunk42/compose,docker/docker.github.io,TomasTomecek/compose,schmunk42/compose,londoncalling/docker.github.io,alexisbellido/docker.github.io,ChrisChinchilla/compose,jiekechoo/compose,ZJaffee/compose,bobphill/compose,bfirsh/fig,denverdino/compose,phiroict/docker,pspierce/compose,LuisBosquez/docker.github.io,moxiegirl/compose,dilgerma/compose,thaJeztah/compose,phiroict/docker,twitherspoon/compose,funkyfuture/docker-compose,philwrenn/compose,Katlean/fig,ph-One/compose,ph-One/compose,feelobot/compose,tpounds/compose,gdevillele/docker.github.io,menglingwei/denverdino.github.io,michael-k/docker-compose,goloveychuk/compose,denverdino/denverdino.github.io,KalleDK/compose,mark-adams/compose,denverdino/denverdino.github.io,KevinGreene/compose,alunduil/fig,ggtools/compose,BSWANG/denverdino.github.io