[dock] Only enable GPU if available

Some execution environments may run CPU as well as GPU
code, this check for Nvidia driver presence will allow
to reuse the same environment on both.

It also updates the GPU option to use the latest version
provided by the nvidia-docker2 documentation.
6 jobs for only_enable_gpu_runtime_if_available in 42 minutes and 33 seconds (queued for 3 seconds)
Status Name Job ID Coverage
  Build
passed build_linux_36 #191140
docker-build

00:13:30

64.0%
passed build_linux_37 #191141
docker-build

00:13:32

64.0%
passed build_macosx_36 #191156
macosx

00:14:38

64.0%
passed build_macosx_37 #191167
macosx

00:14:22

64.0%
failed build_macosx_36 #191138
macosx

00:21:24

64.0%
failed build_macosx_37 #191139
macosx

01:30:00

64.0%