Store container reference in a variable if it will be used repeatedly.
Store container reference in a variable if it will be used repeatedly.

The containerizer already does it in some places, this patch makes it
more consistent.

Review: https://reviews.apache.org/r/61090/

verizonlabs/mesos,abudnik/mesos,asamerh4/mesos,asamerh4/mesos,asamerh4/mesos,asamerh4/mesos,chhsia0/mesos,abudnik/mesos,abudnik/mesos,andschwa/mesos,gsantovena/mesos,andschwa/mesos,asamerh4/mesos,verizonlabs/mesos,kaysoky/mesos,kaysoky/mesos,chhsia0/mesos,dforsyth/mesos,jpeach/mesos,jpeach/mesos,gsantovena/mesos,kaysoky/mesos,jpeach/mesos,zmalik/mesos,reneploetz/mesos,chhsia0/mesos,reneploetz/mesos,verizonlabs/mesos,dforsyth/mesos,jpeach/mesos,gsantovena/mesos,Gilbert88/mesos,chhsia0/mesos,asamerh4/mesos,gsantovena/mesos,dforsyth/mesos,andschwa/mesos,Gilbert88/mesos,Gilbert88/mesos,chhsia0/mesos,Gilbert88/mesos,reneploetz/mesos,Gilbert88/mesos,gsantovena/mesos,gsantovena/mesos,chhsia0/mesos,andschwa/mesos,reneploetz/mesos,verizonlabs/mesos,zmalik/mesos,Gilbert88/mesos,Gilbert88/mesos,kaysoky/mesos,abudnik/mesos,andschwa/mesos,abudnik/mesos,zmalik/mesos,reneploetz/mesos,jpeach/mesos,andschwa/mesos,verizonlabs/mesos,zmalik/mesos,dforsyth/mesos,gsantovena/mesos,chhsia0/mesos,jpeach/mesos,abudnik/mesos,reneploetz/mesos,jpeach/mesos,kaysoky/mesos,dforsyth/mesos,verizonlabs/mesos,andschwa/mesos,zmalik/mesos,verizonlabs/mesos,zmalik/mesos,abudnik/mesos,zmalik/mesos,reneploetz/mesos,dforsyth/mesos,dforsyth/mesos,kaysoky/mesos,asamerh4/mesos,kaysoky/mesos