Notes on integrating the NVIDIA container runtime on Jetson platforms.
Layers required
In addition to the OE-Core and meta-tegra layers, you will need the
meta-virtualization layer and
the meta-oe, meta-networking, and meta-python layers from the
meta-openembedded repository.
Configuration
- Add
virtualizationto yourDISTRO_FEATURESsetting.
Building
-
Add
nvidia-container-toolkitto your image to enable GPU-accelerated containers. -
See the NVIDIA Container Toolkit documentation for details on runtime configuration and usage.
-
The Docker containers that NVIDIA supplies do not bundle most hardware-specific libraries, but expect them to be provided by the host OS. Be sure to include TensorRT, cuDNN, and/or other JetPack components in your image if you expect to run containers that need them.
-
For containers that use GStreamer, include the Jetson-specific GStreamer plugins you may need. See Tegra-specific GStreamer plugins for the available plugin recipes.
-
Consult the documentation in the branch of
meta-virtualizationyou are using for information on how to configure Docker to register thenvidiaruntime to be available at boot time, to avoid having to run thenvidia-ctktool and restart the Docker service on every boot.