Deploy a Docker container to Jetson: to many Jetsons remotely, with GPU access
Install NVIDIA's container runtime (nvidia-container), register it with sudo nvidia-ctk runtime configure --runtime=docker, start containers with --runtime nvidia (runtime: nvidia in Compose), and build on a base image that matches the Jetson's JetPack line: l4t-tensorrt or l4t-jetpack for JetPack 6, NVIDIA's arm64 CUDA images for JetPack 7.2. For many Jetsons, push the image to a registry, pin it by version or digest and roll it out in phases. With PhysicalFleet the Compose stack goes out as a phased release that checks every service is healthy and puts each Jetson back on its exact previous images if anything fails.
What you need
- Jetsons on JetPack 6.2.x (Jetson Linux r36, Ubuntu 22.04, CUDA 12.6, TensorRT 10.3) or 7.2.x (r39, Ubuntu 24.04, CUDA 13.2). Check with
cat /etc/nv_tegra_release. - Docker Engine and the NVIDIA container runtime on each Jetson (step 1).
- Your app as a
linux/arm64image in a registry the Jetsons can reach. - Disk space for Docker. JetPack-based images are gigabytes. Orin NX and Orin Nano modules have no eMMC, so that means NVMe.
- For a fleet: a PhysicalFleet account (free for up to 3 machines) and one or two test Jetsons.
How a container gets the Jetson's GPU
On a PC, a container reaches the graphics card through the NVIDIA driver and NVML. A Jetson's GPU is part of the SoC and shares memory with the CPU, and on JetPack 6 there is no NVML to ask. NVIDIA's container runtime uses a Tegra mode instead, CSV mode: CSV files in /etc/nvidia-container-runtime/host-files-for-container.d list the device nodes and host libraries injected into each container when it is created. Two consequences:
- The runtime must create the container. Docker's
--gpusflag goes through a hook that only works in the toolkit's legacy mode, and Compose'sdeploy.resources.reservations.devicesblock appears to take the same path. In CSV mode the hook refuses with "invoking the NVIDIA Container Runtime Hook directly (e.g. specifying the docker --gpus flag) is not supported". On a Jetson, start GPU containers with--runtime nvidia, or makenvidiaDocker's default runtime. - CUDA, cuDNN and TensorRT live in the image, not on the host. Since r34.1 (JetPack 5) the runtime mounts only platform libraries and device nodes.
l4t-basecarries no CUDA or TensorRT. Your image must bring the user-space libraries, and their versions must suit the host's driver. That is why the base image tag has to match the host's JetPack line.
JetPack 7.2 changes the model. From 7.2, Orin and Thor can use NVIDIA's unified SBSA driver, the same driver model as an Arm server. NVIDIA staff said on the developer forum in August 2026 that there is no JetPack 7.x l4t-jetpack container and no plan for one, and NGC has no l4t-* tag newer than r36. They point to its regular aarch64 containers on NGC, such as nvcr.io/nvidia/cuda:13.0.0-devel-ubuntu24.04 as a base. NVIDIA's own AGX Orin Docker test runs nvcr.io/nvidia/pytorch:25.08-py3. Images built for JetPack 6 don't carry over to a JetPack 7 Jetson, and the other way round.
Ways to deploy containers to many Jetsons
| Method | Best for | Downsides on a Jetson |
|---|---|---|
docker run over SSH | One Jetson on your bench | The flags live in your shell history, not on the device |
| A Compose file and an SSH loop | A few Jetsons on one network | Jetsons behind NAT or on cellular can't be reached. A crash-looping container still counts as updated |
| A registry and a pull timer on each Jetson | Apps already in containers, always online | Every unit pulls gigabytes at once, often over cellular. :latest drifts. No phases, no rollback |
| Images baked into the rootfs, shipped with image-based OTA | Factory images and major JetPack changes | A full image and a reboot for every app change (see Jetson Orin remote update) |
| A lightweight Kubernetes distribution | Teams that already run Kubernetes | Control-plane memory on modules where CPU and GPU share RAM, and GPU setup that must suit CSV mode |
| An agent with a relay, which is how PhysicalFleet works | Tens to thousands of Jetsons behind NAT and cellular | An account with the provider, and the agent on each Jetson |
Step 1: Set up Docker and the NVIDIA runtime on the Jetson
NVIDIA's developer kit guides say a Jetson installed from the Jetson ISO can skip the install part, and one flashed with the Linux_for_Tegra scripts or SDK Manager needs it. Run docker info | grep -i runtime first: if nvidia is listed and is the default, you're done. Otherwise these commands from NVIDIA's guide install the runtime, register it with Docker and make it the default, so you don't need --runtime nvidia on every command and the GPU is also available inside docker build:
sudo apt-get update
sudo apt install -y nvidia-container curl
curl https://get.docker.com | sh && sudo systemctl --now enable docker
sudo nvidia-ctk runtime configure --runtime=docker
# make nvidia the default runtime
sudo apt install -y jq
sudo jq '. + {"default-runtime": "nvidia"}' /etc/docker/daemon.json | \
sudo tee /etc/docker/daemon.json.tmp && \
sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
sudo systemctl daemon-reload && sudo systemctl restart docker
docker info | grep -i runtime # expect: Runtimes: ... nvidia ... Default Runtime: nvidiaMove Docker's data off a small root disk. Images land in /var/lib/docker by default. On an SD card or a 64 GB eMMC that fills after a few releases, and a full root filesystem breaks apt, logging and your app at the same time. Point Docker at the NVMe drive with data-root (the drive must be mounted from /etc/fstab before Docker starts):
sudo systemctl stop docker docker.socket
sudo rsync -aHAX /var/lib/docker/ /mnt/nvme/docker/
# /etc/docker/daemon.json
{
"runtimes": { "nvidia": { "args": [], "path": "nvidia-container-runtime" } },
"default-runtime": "nvidia",
"data-root": "/mnt/nvme/docker"
}
sudo systemctl start docker
docker info | grep "Docker Root Dir"Step 2: Pick a base image that matches the Jetson's JetPack
Read the host's line first, then choose the base. The tags below are the ones on NGC as of December 2026:
cat /etc/nv_tegra_release # R36 = JetPack 6, R39 = JetPack 7.2
dpkg-query -W 'libnvinfer*' 'cuda-*' | head # what the host itself has| Host | Base image | What is inside | Compressed size |
|---|---|---|---|
| JetPack 6 (r36) | nvcr.io/nvidia/l4t-jetpack:r36.4.0 | Every JetPack library: CUDA, cuDNN, TensorRT, VPI, Multimedia. A development image | 5.6 GB |
| JetPack 6 (r36) | nvcr.io/nvidia/l4t-tensorrt:r10.3.0-runtime | TensorRT 10.3 runtime plus CUDA runtime and math libraries | 1.6 GB |
| JetPack 6 (r36) | nvcr.io/nvidia/l4t-cuda:12.6.11-runtime | CUDA 12.6 runtime and math libraries | 1.3 GB |
| JetPack 6 (r36) | nvcr.io/nvidia/l4t-base:r36.2.0 | L4T user space only: no CUDA, no TensorRT | 0.3 GB |
| JetPack 7.2 (r39) | nvcr.io/nvidia/cuda:13.2.0-runtime-ubuntu24.04 (multi-arch, arm64 included) | CUDA 13.2 runtime on Ubuntu 24.04 | 1.8 GB |
| JetPack 7.2 (r39) | nvcr.io/nvidia/cuda:13.3.0-runtime-ubuntu24.04 | CUDA 13.3 runtime; see the note below | 1.8 GB |
| JetPack 7.2 (r39) | nvcr.io/nvidia/pytorch:25.08-py3 | The image NVIDIA's AGX Orin Docker test uses | 11.2 GB: too big for a 4 GB or 8 GB module |
As of December 2026, NVIDIA staff report that CUDA 13.2.x runtime images can fail on a Jetson Orin with JetPack 7.2, because the toolkit's driver-version check does not list the Orin's driver. NVIDIA's workaround is the 13.3.0 image with -e NVIDIA_DISABLE_REQUIRE=true and --runtime nvidia. Test your base on one Jetson first. The container's CUDA version does not have to match the host's, but TensorRT and cuDNN must be installed inside the container.
Ship on a runtime image and build on a development one. NGC has no l4t-jetpack tag for r36.5 (JetPack 6.2.2 and 6.2.3): if your hosts run 36.5, try the r36.4.0 image on one of them before you roll it out. The open-source jetson-containers project's autotag tool picks an image that suits the Jetson it runs on.
Step 3: Build the image for arm64
A Jetson is linux/arm64. An image built on an x86 PC without a platform flag is amd64 and fails with exec format error. Build on a Jetson (a spare one or a CI runner) when the build needs the GPU or nvcc: with nvidia as the default runtime both are available during docker build. Build on x86 with buildx and QEMU for Python apps and file copies; Docker warns emulation "can be much slower than native builds", and nothing that calls the NVIDIA driver runs there.
# Dockerfile for JetPack 6 hosts
FROM nvcr.io/nvidia/l4t-tensorrt:r10.3.0-runtime
RUN apt-get update && apt-get install -y --no-install-recommends python3-pip curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/
RUN pip3 install --no-cache-dir -r /app/requirements.txt
COPY . /app
WORKDIR /app
CMD ["python3", "serve.py"]
# on x86: one-time QEMU setup, then build and push an arm64 image
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx create --name container-builder --driver docker-container --bootstrap --use
docker buildx build --platform linux/arm64 -t registry.example.com/acme/vision:2.4.1-r36 --push .Tag by version and JetPack line (2.4.1-r36, 2.4.1-r39), never :latest. A digest (…/vision@sha256:…) names exactly one build, even after someone moves the tag. Put layers that change often (your code) after layers that rarely do (apt, pip), so a release downloads megabytes instead of the whole image.
Step 4: Write a Compose file that gets the GPU on both JetPack lines
Compose has a runtime attribute for each service, which maps to --runtime. Use it, rather than the deploy.resources.reservations.devices block from Docker's GPU guide: that block is the --gpus path, which CSV mode refuses on JetPack 6. With nvidia already the default runtime the line changes nothing, and it protects a Jetson whose daemon.json was reset by a reflash.
# /opt/cell/compose.yaml
name: cell
services:
vision:
image: registry.example.com/acme/vision:${TAG}
runtime: nvidia
restart: unless-stopped
network_mode: host
volumes:
- /mnt/nvme/models:/models:ro
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/health"]
interval: 10s
timeout: 3s
retries: 3
# .env next to it
TAG=2.4.1-r36- A health check that proves the model loaded, not only that the process started: a container whose CUDA init failed often keeps running.
- Models on a volume, so a model update doesn't download the image again (see deploy a TensorRT model to Jetson).
- Cameras need
devices:entries such as/dev/video0.
Check it on one Jetson:
docker compose -f /opt/cell/compose.yaml up -d
docker compose -f /opt/cell/compose.yaml ps # STATUS should read (healthy)
docker compose -f /opt/cell/compose.yaml exec vision \
sh -c 'ldconfig -p | grep nvinfer' # TensorRT libraries are inside the image
sudo tegrastats --interval 1000 # GR3D_FREQ rises when the model runs on the GPUStep 5: Ship the Compose stack to every Jetson with PhysicalFleet
On each Jetson, open Fleet, press Add machine and run the command on the host OS, not in a container. From the host the agent sees every container, and Docker logs and events (a container failed, crash-looping, restarted, or killed for memory) arrive in Debugging › Logs with no setup. Tag each Jetson with its module and JetPack line, for example --tags jetson,orin-nx,jp6.
In OTA Updates › Releases, press New release, name it (vision-stack) and give it a version (2.4.1). Add a Docker block in Compose stack: Deploy mode:
- The compose file, pasted, uploaded or imported from a GitHub link, with the version in the
.envvalues (TAG={{var:VERSION}}-r36). - Registry login for a private registry, the password as
{{secret:REGISTRY_PASSWORD}}from Organization settings › Secrets: fetched on the Jetson when the step runs, shown as***in output. - A check: an HTTP endpoint such as
/versioncontaining{{var:VERSION}}. - Runs on for a mixed fleet: one Docker block for
jp6machines with the-r36tag, one forjp7with-r39. It also takes a command that succeeds, such asgrep -q R36 /etc/nv_tegra_release, so an untagged machine still gets the right image.
On each Jetson the step pulls every image, starts the stack, and succeeds only when every service is running, healthy and has stayed up for 10 seconds. A service that crash-loops fails the step with its last error line, so an exec format error or a CUDA init failure shows in the run's output instead of hiding behind up -d. On failure the compose file and .env come back and the stack returns to exactly the images it ran before, without pulling.
To keep one release and install the newest build each time, add the image under Release settings › Newest versions: each rollout pins it by digest. Then press Preview on a machine on a real Jetson. Nothing changes; you see which blocks would run, a missing image or secret, and whether there is disk space. Then Publish.
Step 6: Roll it out in phases, with the health gate and rollback
Press Roll out, filter the machines by group or tags (jetson), and pick the Canary, then careful preset: 1 machine, then 10 %, 50 % and 100 %. The first machines cover every architecture, OS and init system you have; to be sure each module type is tried early, roll out to one orin-nano and one agx-orin by tag first.
Settings that matter for Jetson images:
| Setting | Why on a Jetson |
|---|---|
| Before starting: free disk space | A release that would fill the Docker disk waits instead of failing halfway. Point the check at the NVMe that holds Docker's data (the min_free_path option in the release's JSON view), not the root disk |
| Before starting: an unmetered network | Gigabyte pulls wait for Wi-Fi or Ethernet instead of the cellular plan |
| Download ahead while waiting | Images are pulled while the machine waits for its maintenance window, so the switch takes seconds |
| Health gate, with On a regression, install set to the previous release | After each phase it compares updated Jetsons with ones not updated yet (errors, new issues, ROS topic rates, inference time where measured) and starts the rollback itself |
Offline Jetsons install when they reconnect, within 7 days by default, without holding their phase back. A Jetson mid-task runs pf busy --reason "picking" --for 30m and the update waits. More than 20 % of a phase failing stops the rollout.
What breaks container deployments on a Jetson fleet
| Failure | With an SSH loop or a pull timer | With a PhysicalFleet release |
|---|---|---|
| The pull fills the disk | Layers half extracted, Docker wedged, sometimes the root filesystem full | The free-space precondition holds the release; it fails without changes if room never appears |
| A cellular link drops mid-pull | The script prints FAILED and moves on | The old stack keeps running; a failed pull ends the step before anything is switched |
| The new image crash-loops (wrong arch, wrong JetPack base, CUDA init) | Counted as updated; the robot is down | The step fails with the last error line and the stack returns to its previous images |
| Healthy but slower or wrong | Noticed by a customer | The health gate stops the rollout and installs the previous release |
| Power cut during the update | Unknown state | After boot the release finishes or rolls back |
| Robot mid-task | Containers restart under it | pf busy or a maintenance window defers the update |
:latest moved during the rollout | Units run different builds | The builder warns about :latest, and with Newest versions each rollout pins one digest for every machine |
| Unit offline for a week | Never updated, nobody knows | Installs when back (within 7 days by default); the rollout page lists it as waiting |
Reference: containers on each JetPack line, as of December 2026
| JetPack 6.2.x | JetPack 7.2.x | |
|---|---|---|
| Jetson Linux | r36.4.x, 36.5.x | r39.2.x |
| Ubuntu in the image | 22.04 | 24.04 |
| CUDA / TensorRT on the host | 12.6 / 10.3 | 13.2 / 10.16.2 (7.2, 7.2.1), 11.4.1 (7.2.2) |
| NVIDIA base images | l4t-jetpack, l4t-tensorrt, l4t-cuda (r36 tags) | NGC aarch64 images (cuda, pytorch); no l4t-* images (per NVIDIA staff) |
| GPU in a container | --runtime nvidia; --gpus refused (seen on both lines) | The nvidia runtime as Docker's default, per NVIDIA's setup |
| Moving between lines | A reflash (see upgrade JetPack), then images rebuilt on the new base | |
On 4 GB and 8 GB modules your libraries and model share memory with the GPU, so ship a runtime base, not the full l4t-jetpack image.
Keeping a Jetson fleet's containers consistent
Drift is the long-term problem: one Jetson got an apt upgrade, another was flashed from an older image, a third missed last month's stack because it sat in a crate. The Hardware tab's NVIDIA section shows each Jetson's JetPack, L4T and NVIDIA library versions, and Debugging › Investigate › Parameters marks every Jetson whose JetPack version or NVIDIA library versions differ from most of the fleet. Each machine's Releases tab lists every release that ran there, step by step.
Treat a JetPack change as its own project: reflash, reinstall the agent (or bake it into the image with --image), then roll out the -r39 stack to those machines. Until everything has moved, one release with two Docker blocks and Runs on keeps both lines on the same app version.
Common errors and fixes
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].Why: The container asked for a GPU with --gpus or a Compose devices reservation, and Docker has no GPU device driver registered: the NVIDIA runtime isn't installed or configured.
Fix: sudo apt install -y nvidia-container, sudo nvidia-ctk runtime configure --runtime=docker, restart Docker, then use --runtime nvidia (Compose: runtime: nvidia) instead of --gpus.
docker: Error response from daemon: unknown or invalid runtime name: nvidia.Why: --runtime nvidia or runtime: nvidia names a runtime Docker doesn't know: /etc/docker/daemon.json has no nvidia entry, often after a reflash or a Docker reinstall that replaced the file.
Fix: Run sudo nvidia-ctk runtime configure --runtime=docker and restart Docker. docker info | grep -i runtime should list nvidia.
invoking the NVIDIA Container Runtime Hook directly (e.g. specifying the docker --gpus flag) is not supported. Please use the NVIDIA Container Runtime instead.: unknown.Why: The toolkit runs in CSV mode on the Jetson (the line before it reads Auto-detected mode as 'csv'), and --gpus only works in the toolkit's legacy mode.
Fix: Use --runtime=nvidia, or set "default-runtime": "nvidia" in daemon.json. In Compose, replace the devices reservation with runtime: nvidia.
standard_init_linux.go:211: exec user process caused "exec format error"Why: The image was built for x86 (amd64) and the Jetson is arm64. Docker may also print WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8).
Fix: Rebuild with docker buildx build --platform linux/arm64, or build on a Jetson. Check an image with docker image inspect --format '{{.Architecture}}' <image>.
libnvinfer.so.8: cannot open shared object file: No such file or directoryWhy: The image has no TensorRT libraries (the name shows .so.10 for TensorRT 10 images). Since JetPack 5 the runtime doesn't mount TensorRT from the host, so an image built on l4t-base or plain Ubuntu lacks it, and one built for another platform has the wrong one.
Fix: Build on l4t-tensorrt:r10.3.0-runtime or l4t-jetpack for JetPack 6, or an NGC arm64 image with your JetPack 7.2 release's TensorRT. Check with ldconfig -p | grep nvinfer inside the container.
panic: runtime error: slice bounds out of range [:73] with capacity 71Why: The NVIDIA container hook crashed on a CUDA 13.2.x runtime image on JetPack 7.2: the toolkit's driver-version check does not list the Orin's driver.
Fix: Use cuda:13.3.0-runtime-ubuntu24.04 with -e NVIDIA_DISABLE_REQUIRE=true --runtime nvidia, as NVIDIA staff advised, and test on one Jetson first.
WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available.Why: An NGC container started without the NVIDIA runtime, so no GPU device or driver library was injected. Seen on Jetsons where Docker was installed without making nvidia the default runtime. The banner can also appear on an iGPU Jetson where CUDA works, so confirm with torch.cuda.is_available() or deviceQuery before changing anything.
Fix: Add "default-runtime": "nvidia" to daemon.json and restart Docker, or add --runtime nvidia to the run command.
cudaGetDeviceCount returned 803
→ system has unsupported display driver / cuda driver combinationWhy: CUDA in the container can't work with the host's driver: usually an image built for a newer CUDA than the host supports (a CUDA 13 image on JetPack 6), or no NVIDIA runtime.
Fix: Match the base to the host line (r36 images on JetPack 6, CUDA 13 images on JetPack 7.2) and use the NVIDIA runtime.
- nvidia-container installed, registered with nvidia-ctk and set as Docker's default runtime
- Docker's data-root on the NVMe drive, not the SD card or eMMC
- Base image matched to the JetPack line: r36 l4t images for JetPack 6, NGC arm64 images for JetPack 7.2
- Images built for linux/arm64, tagged with version and line, never :latest
- Compose services use runtime: nvidia and a health check that proves the model loaded
- Release previewed on a real Jetson, with free-space and unmetered-network preconditions
- Rolled out with Canary, then careful, the health gate on and the previous release set for rollback
PhysicalFleet OTA updates ship your Jetson containers as a Docker Compose release: images pulled ahead of the maintenance window, the stack switched only when every service is healthy, and the exact previous images back on any Jetson where something fails, including after a power cut. Rollouts go in phases, stop themselves when too many machines fail or the health gate sees Jetsons getting worse, and install on offline units when they return.
Because the agent runs on the host, it also shows each Jetson's JetPack, L4T and NVIDIA library versions and flags the ones that drifted, so you know which units need the -r36 image and which the -r39 one before you start a rollout. It is free for up to 3 machines; see pricing.
- NVIDIA Container Toolkit: runtime modes, CSV mode for Tegra and the --gpus error
- NGC catalog: l4t-jetpack (and l4t-base, l4t-cuda, l4t-tensorrt) tags and notes
- NVIDIA Jetson AGX Orin Developer Kit user guide: Docker setup
- Docker Compose container specification: runtime, gpus, platform
- Docker: multi-platform builds with buildx and QEMU
- jetson-containers: supported JetPack versions, autotag and setup
Written for PhysicalFleet as of December 5, 2026.
Can a Docker container use the GPU on a Jetson Orin?
Yes. Install NVIDIA's container runtime (the nvidia-container package), register it with sudo nvidia-ctk runtime configure --runtime=docker and start the container with --runtime nvidia or make nvidia Docker's default runtime. The image must carry CUDA and TensorRT versions that suit the host's JetPack.
Does docker run --gpus all work on a Jetson?
No, not reliably. On JetPack 6 the toolkit runs in CSV mode and refuses the --gpus flag with an error telling you to use the NVIDIA Container Runtime, and NVIDIA forum reports show the same refusal on JetPack 7.2. Use --runtime nvidia, or runtime: nvidia in Compose, which works on both.
Which Docker base image should I use for JetPack 6?
Build on nvcr.io/nvidia/l4t-jetpack:r36.4.0 and ship on a smaller runtime image such as l4t-tensorrt:r10.3.0-runtime or l4t-cuda:12.6.11-runtime. l4t-base has no CUDA or TensorRT inside.
Is there an l4t-jetpack image for JetPack 7?
No. As of December 2026, NVIDIA staff say on the developer forum that there is no JetPack 7.x l4t-jetpack container and no plan for one, and NGC has no l4t-* tag newer than r36. They point to the regular aarch64 containers on NGC, such as the CUDA 13 Ubuntu 24.04 images.
Can I build Jetson Docker images on an x86 PC?
Yes, with docker buildx build --platform linux/arm64 and QEMU emulation. It is much slower than a native build and nothing that needs the GPU runs during it, so build CUDA extensions and TensorRT engines on a Jetson.
How do I update Docker containers on many Jetsons at once?
Pin the new image by version or digest, change the tag in each Jetson's Compose .env and restart the stack in phases, checking health before the next group. PhysicalFleet does this as a release that reaches Jetsons behind NAT or on cellular and rolls back on failure.
How do I roll back a container update on a Jetson?
Keep the previous image on the device, point the Compose file back at it and run docker compose up -d. A PhysicalFleet Compose release does this by itself wherever a step or check fails, without pulling.
- Raspberry Pi remotely
- Jetson Orin remote access
- Robot web UI remotely
- Robot camera remotely
- Update many devices
- Logs on remote devices
- ROS 2 remotely
- Offline alerts
- Jetson remote update
- Jetson remote desktop
- Jetson camera remotely
- Jetson remote monitoring
- Jetson fleet management
- TensorRT on many Jetsons
- Jetson remote debugging
- Jetson reboot and recovery
- SO-101 remotely
- All how-to guides →
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go