broadly/dokku — pull request #11 by michaelshobbs (2014-08-05 22:37:48+00:00)
Title: only kill old container if it is in fact running

If the old container was not running for some reason (i.e. a failed deploy before having a CHECKS file), we would exit 1.

This verifies the container $oldid has .State.Running = true before attempting to kill it.