The &quot;--device&quot; flag allows you to map devices through to a Docker container. It runs in &#x27;privileged&#x27; mode though, so isn&#x27;t suitable for a shared host.<p>Nvidia make it pretty straight-forward now but we had to branch from that approach a bit for the CoreOS deployment.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;NVIDIA&#x2F;nvidia-docker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NVIDIA&#x2F;nvidia-docker</a> (Nice pictures)<p><a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;reference&#x2F;run&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;reference&#x2F;run&#x2F;</a> (Docker documentation, search for &#x27;privileged&#x27;)<p>The approach is a bit different depending on your host operating system. You&#x27;ll also find there are constraints when you introduce a virtualisation layer, like virtualbox or parallels on your desktop - GPUs can be mapped through, but it&#x27;s painful(ish).