Ahh yes, setup all your DockerCmd's then call ``execute()`` later.  I did this in a test I wrote, seeing it here, yes it does improve readability.   You could take it one step further by putting all this into a l'il helper method (in the test) then call it in a loop:

    for cmdname in ('restart', 'stop', ...):
         self.sub_stuff['%s_cmd' % cmdname] = mkcmd(cmdname)

Where ``mkcmd()`` also knows option-name, i.e. ``self.config.get('%s_options_csv' %cmdname)``

Anyway, something to think about, what you have is fine here (small # of containers).