dotcloud/docker — pull request #2748 by jpoimboe (2013-11-18 17:43:46+00:00)
Title: fix container restart race condition

Finish container cleanup before setting the state to stopped.
Otherwise, for an application that exits quickly, a call to Restart
can allow Start to be called again before cleanup is done, resulting in
overritten data in the Container struct.