Based on https://github.com/ehfd/nvidia-dind
Isolated DinD (Docker in Docker) container for developing and deploying docker containers using NVIDIA GPUs and the NVIDIA container toolkit. Useful for deploying the docker engine with NVIDIA in Kubernetes.
Host is required to have the NVIDIA container toolkit installed and set up. Privileged mode is required like any other DinD container with root requirement.
docker run --gpus 1 -it --privileged ghcr.io/extrality/nvidia-dind:latest