Docker image L4T JetPack 7.2.1 -- L4T r39.2.1

l4t-jetpack β€” JetPack 7.2.1 image (L4T r39.2.1, Ubuntu 24.04, Thor / Orin)

A working, correct build of the NVIDIA L4T JetPack developer image for
JetPack 7.2.1 (L4T r39.2.1) on Jetson AGX Thor and Orin devkits.
Ubuntu 24.04 Noble, aarch64. Based on nvcr.io/nvidia/base/ubuntu:24.04
the repo.download.nvidia.com/jetson/{common,som,ffmpeg} r39.2 apt repos,
and approx jp721/Linux_for_Tegra/tools/samplefs/nvubuntu-noble-basic-aarch64-packages.

Published image: whitesscott/l4t-jetpack on Docker Hub.

Build

make image_jp72

Sanity check

make smoke_jp72

Run

docker run -it --rm --name jetpack --network host \
  --runtime=nvidia --gpus=all \
  --privileged --ipc=host \
  --ulimit memlock=-1 --ulimit stack=67108864 \
  --shm-size=16g \
  -e NVIDIA_VISIBLE_DEVICES=all \
  -e NVIDIA_DRIVER_CAPABILITIES=all \
  whitesscott/l4t-jetpack:r39.2.1

With secure X11 auth (recommended for X11 forwarding)

docker run -it --rm --name jetpack --network host \
  --runtime=nvidia --gpus=all \
  -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix \
  -e XAUTHORITY=/tmp/.Xauthority \
  -v $XAUTHORITY:/tmp/.Xauthority:ro \
  --privileged --ipc=host \
  --ulimit memlock=-1 --ulimit stack=67108864 \
  --shm-size=16g \
  -e NVIDIA_VISIBLE_DEVICES=all \
  -e NVIDIA_DRIVER_CAPABILITIES=all \
  nvcr.io/nvidia/l4t-jetpack:r39.2.1

Requires $XAUTHORITY to be set on the host (it is by default under GDM/GNOME; check with echo $XAUTHORITY). No xhost command needed β€” the container authenticates as your user.

Test X11 forwarding

The -e DISPLAY + -v /tmp/.X11-unix mount in the run command wires up X11 so containerized apps can open windows on the host desktop. Quick verification, inside the container:

xeyes                                # simplest: a pair of eyeballs on your Thor desktop

Full GStreamer video pipeline to the display (proves X + Xv + GStreamer plugin registry all work):

gst-launch-1.0 videotestsrc num-buffers=300 pattern=smpte ! videoconvert ! xvimagesink

Confirmed working on NVIDIA Thor (sm 11.0) and AGX Orin (sm 8.7)

  • CUDA 13.2.2 β€” nvcc compiles + on-device kernel executes (atomicAdd returns expected 65536)
  • cuDNN 9.20.0.46 β€” cudnnGetVersion() returns 92000 via real link
  • TensorRT 10.16.2 β€” getInferLibVersion() returns 101602; builder resources present for sm_110, sm_100, sm_120, sm_75-89
  • cuDLA 13.2 β€” headers + libs installed (runtime not exercised)
  • VPI 4.1.4 β€” Python import vpi succeeds
  • OpenCV 4.8.0 β€” Python import cv2 succeeds
  • PyTorch β€” installable via pip install --index-url https://pypi.jetson-ai-lab.io/sbsa/cu132 torch; torch.mm on device="cuda" runs on Thor
  • Multimedia β€” GStreamer 1.24.2 + NVIDIA plugins (nvarguscamerasrc, nvv4l2camerasrc, nvv4l2decoder, nvv4l2h264enc, nvv4l2h265enc, nvvidconv); H.264 hardware encode with NVMM zero-copy verified end-to-end
  • Auto-arch β€” entrypoint sets TORCH_CUDA_ARCH_LIST from __nvcc_device_query (Thor β†’ 11.0, Orin β†’ 8.7)

Also included: build-essential, git, rsync, openssh-client, xauth, python3 + pip + numpy, locale set to en_US.UTF-8, render/video groups pre-created at Thor default GIDs.

Not included Add to Dockerfile if needed: Pytorch, DeepStream, Triton, Isaac ROS, DALI, FFmpeg.

Inspect the published image

docker pull whitesscott/l4t-jetpack:latest
docker history whitesscott/l4t-jetpack:latest --no-trunc   # every RUN/COPY layer with its command
docker inspect whitesscott/l4t-jetpack:latest | jq         # ENV, ENTRYPOINT, CMD, exposed ports

Image size

  • DISK USAGE 29.5GB
  • CONTENT SIZE 11GB

Upstream

Based on NVIDIA source : https://gitlab.com/nvidia/container-images/l4t-jetpack



Dockerfile.jetpack_721.txt (7.8 KB)
Makefile.txt (1008 Bytes)

Hi,

Thanks for sharing this.

Using Ubuntu as basic instead of nvcr.io/nvidia/cuda is to align the same CUDA version (13.2) as the JetPack release?

Thanks.

Started from git@gitlab.com:nvidia/container-images/l4t-jetpack.git. Used Dockerfile.jetpack_6 as starting point.

Updated the apt packages to r39.2.1, using
Linux_for_Tegra/ nv_tegra/l4t_deb_packages/*.deb and tools/samplefs/nvubuntu-noble-basic-aarch64-packages
as a guide and pulled and concatenated Packages from

https://repo.download.nvidia.com/jetson/

common/dists/r39.2/main/binary-arm64/Packages
som/dists/r39.2/main/binary-arm64/Packages
ffmpeg/dists/r39.2/main/binary-arm64/Packages

to check for further packages. Added things I thought would be helpful; build-essential, nano, zstd. Went back this afternoon and added packages for X11 forwarding and testing.

The Dockerfile shows everything. I tested the image on Thor and AGX Orin.

Hi,

Got it. Thanks for sharing.

good job! manπŸ‘Œ