Add docker upstart pre-stop and post-start events to prevent race conditions

Docker-DCO-1.1-Signed-off-by: Jesse Panganiban <me@jpanganiban.com> (github: jpanganiban)

Docker-DCO-1.1-Signed-off-by: Jesse Panganiban <me@jpanganiban.com> (github: )