[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)
Status Job ID Name Coverage
  Build
passed #186199
docker-build
build_linux_36

00:12:39

64.0%
passed #186198
docker-build
build_linux_37

00:13:09

64.0%
passed #186195
macosx
build_macosx_36

00:21:52

64.0%
passed #186196
macosx
build_macosx_37

00:21:57

64.0%
failed #186197
docker-build
build_linux_36

00:12:53

64.0%