Playbook · DGX Spark clusters · Problem
Check the host first, then how the container was started, then the toolkit that connects the two, then the software inside.
Restarting Docker can stop every container on that Spark. Do the read-only checks first, and see what else is running.
Checked on 26 November 2026 against: NVIDIA's DGX Spark container page and Container Toolkit pages. We have not yet run this playbook start to finish on our own hardware.
The symptom
| Message | What it points to |
|---|---|
could not select device driver | Docker has nothing set up to provide the device you asked for. |
A line starting permission denied while trying to connect | Your user may not use Docker. This is not a GPU fault. |
Failed to initialize NVML: Unknown Error | NVIDIA’s toolkit page: a running container can lose the GPU after it is updated, for example when systemd reloads. |
A runtime not found error | NVIDIA’s DGX Spark page says to check the toolkit and Docker’s settings. |
Memory-Usage: Not Supported | Not a fault. NVIDIA says this is expected on DGX Spark. |
Written from the makers’ own pages and source code, read on 26 November 2026. We have not run these checks and fixes on our own hardware for this page. In the commands, spark-two and words in capitals such as USER, PEER_LINK_IP and NAME are made-up placeholders: put your own in. All cluster problems and the safe-checks method.
Safe checks first
These read only. If your user cannot use Docker, put sudo before the Docker commands.
If this fails on the Spark itself, stop here: the container is not the problem. Update through the DGX Dashboard or contact support.
nvidia-smi
ls /dev/nvidia*
NVIDIA says the toolkit is installed and set up on DGX Spark, so you should not normally need to install it.
docker version
id
nvidia-ctk --version
cat /etc/docker/daemon.json
docker info | grep -i runtime
nvidia-ctk cdi list
The first line shows whether a GPU was requested when it was made; an empty list means --gpus style access was not asked for, though other methods exist. The second shows what architecture the image was built for. DGX Spark is Arm64.
docker inspect --format '{{json .HostConfig.DeviceRequests}} {{.HostConfig.Runtime}}' NAME
docker image inspect --format '{{.Architecture}}' IMAGE
Read the first error, not only the last.
docker logs --tail 200 NAME
What each result means
| What you found | What it means | Next |
|---|---|---|
Host nvidia-smi fails | Below Docker. | Updates, reboot, support |
| Test container works, yours does not | Your start command or your image. | Add the GPU flag; check the image |
| Test container fails with a driver or runtime message | The toolkit link to Docker. | Configure the runtime |
| Permission message | Docker access. | Use sudo |
| Worked, then NVML unknown error | The container lost access. | Make the container again |
| CUDA version error inside | The image and the host driver do not suit each other. | Pick an image NVIDIA lists for your release |
Fix
This is the test on NVIDIA’s DGX Spark page. It separates a Docker problem from a problem inside your image.
Changes something. Downloads a large image the first time, which uses disk space, then runs once and removes the container. The tag is the one on NVIDIA’s page on the date we read it.
docker run --rm --gpus=all nvcr.io/nvidia/cuda:13.0.1-devel-ubuntu24.04 nvidia-smi
Add --gpus all. An existing container keeps the settings it was made with, so make a new one.
Changes something. Deletes the stopped container and any files kept only inside it. Mounted folders and volumes stay. Copy out what you need first, and keep the original run command.
docker rm NAME
Using sudo works with no change. NVIDIA shows how to add your user to the docker group, and calls it optional.
Changes something. Gives that user control over Docker, which amounts to root-level control of the Spark. It applies after a new sign-in.
sudo usermod -aG docker USER
NVIDIA says to delete the affected container; the new one gets access again. Its toolkit page also describes lasting measures, including CDI. Read it before changing Docker’s settings.
First save a copy of Docker’s settings file, if there is one. NVIDIA’s toolkit guide then configures Docker and restarts it.
Changes something. Writes a copy of the settings file. It fails harmlessly if there is no file; note that.
sudo cp /etc/docker/daemon.json /etc/docker/daemon.json.before
Changes something. Edits Docker’s settings file.
sudo nvidia-ctk runtime configure --runtime=docker
Restarts or stops something. Restarts Docker. Running containers, including a model server or cluster node, can be stopped, and those without a restart policy stay stopped.
sudo systemctl restart docker
Use an image published for Arm64 and for the GPU in the Spark. NVIDIA points to its NGC containers for current software.
Confirm
Run the test container again, then check your own, which should list the GPU.
docker exec NAME nvidia-smi
Then run a real piece of your work: seeing the GPU does not prove the software inside can use it.
Undo
Settings file: put the copy back and restart Docker. If there was no file before, move the new one aside instead of deleting it.
Restarts or stops something. Replaces Docker’s settings with your copy and restarts Docker, which can stop containers.
sudo cp /etc/docker/daemon.json.before /etc/docker/daemon.json
sudo systemctl restart docker
Changes something. Removes the user from the Docker group. Sessions already open keep the access until they end.
sudo gpasswd -d USER docker
Next
Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.
Sources
General guidance only, in our own words. Check what a command does before you run it; you use these steps at your own risk. NVIDIA, DGX Spark, ConnectX and CUDA are trademarks of NVIDIA Corporation; Docker, Ray, PyTorch, Ubuntu, Linux, Hugging Face and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by NVIDIA or any project named here.