Playbook · DGX Spark clusters · Problem

DGX Spark container cannot see the GPU

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.

How to give a container the GPU

  1. Run nvidia-smi on the Spark itself first.
  2. Check the container was started with a GPU, for example --gpus all.
  3. NVIDIA says the toolkit is already set up on DGX Spark: check it before changing it.
  4. Know what a Docker restart will stop before you run it.

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

What you see.

MessageWhat it points to
could not select device driverDocker has nothing set up to provide the device you asked for.
A line starting permission denied while trying to connectYour user may not use Docker. This is not a GPU fault.
Failed to initialize NVML: Unknown ErrorNVIDIA’s toolkit page: a running container can lose the GPU after it is updated, for example when systemd reloads.
A runtime not found errorNVIDIA’s DGX Spark page says to check the toolkit and Docker’s settings.
Memory-Usage: Not SupportedNot a fault. NVIDIA says this is expected on DGX Spark.
Does nvidia-smi work on the host? Host driver or hardware: not Docker if not yes Can you run Docker commands? Use sudo, or review group access if not yes Was the container given a GPU? Start it with --gpus if not yes Is the toolkit set up for Docker? Check toolkit and settings if not yes Does the software inside suit the Spark? Use an Arm64 image built for it if not
Our diagram: the links between the GPU and a program in a container. Check them from the host upwards.

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

Check from the host upwards.

These read only. If your user cannot use Docker, put sudo before the Docker commands.

  1. The host

    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*
  2. Docker and your access

    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
  3. How the failing container was started

    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
  4. Its log

    Read the first error, not only the last.

    docker logs --tail 200 NAME

What each result means

Match your result.

What you foundWhat it meansNext
Host nvidia-smi failsBelow Docker.Updates, reboot, support
Test container works, yours does notYour start command or your image.Add the GPU flag; check the image
Test container fails with a driver or runtime messageThe toolkit link to Docker.Configure the runtime
Permission messageDocker access.Use sudo
Worked, then NVML unknown errorThe container lost access.Make the container again
CUDA version error insideThe image and the host driver do not suit each other.Pick an image NVIDIA lists for your release

Fix

Fix the broken link.

First, a clean test container

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

The start command

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

Docker access

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

A lost GPU

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.

Toolkit configuration

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

The image

Use an image published for Arm64 and for the GPU in the Spark. NVIDIA points to its NGC containers for current software.

Confirm

The GPU appears inside.

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

Take a change back.

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

Keep going.

About Server AI Hub

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.

See what Server AI Hub does

Sources

Check the makers’ own pages.

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.