[dock] Handle docker exception following the raise on error property

IF docker is installed or the daemon not accessible, the exception
propagation will not follow the raise on error property. This patch
fixes that and thus keeps the behaviour consistant.
5 jobs for 93_follow_raise_on_error_property in 34 minutes and 38 seconds (queued for 2 seconds)