Just recently got to know that it’s possible to leverage CUDA and cuDNN inside Docker.
Basically what is needed is corresponding Docker image that can be found here installation of Nvidia Docker runtime and to configure Docker daemon to use nvidia as a default runtime in /etc/docker/daemon.json. as it was described here and bellow there is an example of my config:
Some time ago I started to use Boxen to manage my laptop and here is a link and recently my MBP was stolen and it helped me a lot and saved lots of time. Also invested effort helped me a lot to bootstrap one more MBP provided by company I was working for.
However recently it was clearly visible that Boxen is not maintained and even GitHub switched to another tool which simplifies things a lot which is called Strap.