Git Product home page Git Product logo

jetson_ubuntu20_images's Introduction

Hardware accelerated Docker images based on Ubuntu 20.04 for Jetson family

Nvidia Jetson images are based on Ubuntu 18.04. However, many applications and projects utilizes libraries specific to Ubuntu 20.04. Therefore, this repository provides docker images based on ubuntu:focal, that are able to take full advantage of the Jetson hardware (Nano, Xavier NX, Xavier AGX and Xavier TX2). All images come with full CUDA support (passthrough from the host) including TensorRT (including python bindings) and VisionWorks.

Furthermore the script folder includes system installable run-scripts to quickly iterate the build process and set the relevant docker flags at runtime.

The following images can be directly pulled from DockerHub without needing to build the containers yourself:

L4T Version Dockerhub image
l4t-ubuntu20-base R32.6.1 timongentzsch/l4t-ubuntu20-base:latest
l4t-ubuntu20-opencv R32.6.1 timongentzsch/l4t-ubuntu20-opencv:latest
l4t-ubuntu20-pytorch R32.6.1 timongentzsch/l4t-ubuntu20-pytorch:latest
l4t-ubuntu20-ros2-base R32.6.1 timongentzsch/l4t-ubuntu20-ros2-base:latest
l4t-ubuntu20-ros2-desktop R32.6.1 timongentzsch/l4t-ubuntu20-ros2-desktop:latest
l4t-ubuntu20-zedsdk R32.6.1 timongentzsch/l4t-ubuntu20-zedsdk:latest
l4t-ubuntu20-crosscompile R32.6.1 timongentzsch/l4t-ubuntu20-crosscompile:latest

note: make sure to run the container on the intended L4T host system. Running on older JetPack releases (e.g. r32.4.4) can cause driver issues, since L4T drivers are passed into the container.

To download and run one of these images, you can use the included run script from the repo:

$ scripts/docker_run timongentzsch/l4t-ubuntu20-base:latest

For other configurations, below are the instructions to build and test the containers using the included Dockerfiles.

Docker Default Runtime

To enable access to the CUDA compiler (nvcc) during docker build operations, add "default-runtime": "nvidia" to your /etc/docker/daemon.json configuration file before attempting to build the containers:

{

"runtimes": {

  "nvidia": {

    "path": "nvidia-container-runtime",

    "runtimeArgs": []

  }

 },

"default-runtime": "nvidia"

}

You will then want to restart the Docker service or reboot your system before proceeding.

Build and test the images

To rebuild the containers from a Jetson device, first clone this repo via Git LFS:

$ git clone https://github.com/timongentzsch/Jetson_Ubuntu20_Images.git

$ cd Jetson_Ubuntu20_Images

Work with the provided scripts

You may want to install the provided scripts to build, run and restart containers with the right set of docker flags:

$ sudo scripts/install-scripts.sh

This will enable you to quickly iterate your build process and application.

After that you can use following commands globally:

dbuild, drun, dstart

It ensures that the docker environment feels as native as possible by enabling the following features by default:

  • USB hot plug

  • sound

  • network

  • bluetooth

  • GPU/cuda

  • X11

note: refer to --help for the syntax

jetson_ubuntu20_images's People

Contributors

timongentzsch avatar amfern avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.