Giter Club home page Giter Club logo

sdk_manager_docker's Introduction

sdk_manager_docker

Introduction

This is a Dockerfile to use NVIDIA SDK Manager on Docker container.

Important Information

NVIDIA released official Docker image(https://docs.nvidia.com/sdk-manager/docker-containers/index.html).

Requirements

  • Docker

Preparation

Download NVIDIA SDK Manager

Please download the package of NVIDIA SDK Manager from https://developer.nvidia.com/nvidia-sdk-manager.
And, please put the package of NVIDIA SDK Manager in the same directory as the Dockerfile.
This time, I used sdkmanager_1.8.0-10363_amd64.deb.

Build Docker image

docker build --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack .

To build a Docker image with a specific SDK Manager version override the SDK_MANAGER_VERSION variable in the Docker command line

docker build --build-arg SDK_MANAGER_VERSION=1.8.0-10363 --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack .

Create Docker container

./launch_container.sh

Launch NVIDIA SDK Manager

Please launch NVIDIA SDK Manager by the following command.

sdkmanager

Please refer to https://docs.nvidia.com/sdk-manager/install-with-sdkm-jetson/index.html. And, I tested in the following setting.

  • Manual Setup
  • OEM Configuration: Runtime

Notes

If you get errors like this, it means that QEMU is not installed in host/container

To configure QEMU, run below, either on host, or the running container.

./configure_qemu.sh

sdk_manager_docker's People

Contributors

atinfinity avatar avv-fliks avatar bmx666 avatar bsamadi avatar oytis avatar roangel avatar satyajitghana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sdk_manager_docker's Issues

./launch_container.sh not working on mac

when i ran ./launch_container.sh
i got following error

./launch_container.sh: line 6: xauth: command not found
./launch_container.sh: line 6: xauth: command not found
./launch_container.sh: line 10: realpath: command not found
docker: Error response from daemon: Mounts denied:
The paths /Downloads and /nvidia
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERRO[0000] error waiting for container: context canceled

SO I CHANGED THE SHELL AS FOLLOWS

#!/bin/sh

XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -

mkdir -p jetpack_home/nvidia
mkdir -p jetpack_home/Downloads
JETPACK_HOME=$(realpath ./jetpack_home)

docker run --privileged --rm -it
--volume=/XSOCK:$XSOCK:rw
--volume=/XAUTH:$XAUTH:rw
--volume=/dev:/dev:rw
--volume=Users/Documents/Dockerfiles/sdk_manager_docker-master/jetpack_home/ nvidia:/home/jetpack/nvidia:rw
--volume=Users/Documents/Dockerfiles/sdk_manager_docker-master/jetpack_home/ Downloads:/home/jetpack/Downloads:rw
--shm-size=1gb
--env="XAUTHORITY=${XAUTH}"
--env="DISPLAY=${DISPLAY}"
--env=TERM=xterm-256color
--env=QT_X11_NO_MITSHM=1
--net=host
-u "jetpack"
jetpack:latest
bash

NOW I GET FOLLOWING ERROR

./launch_container.sh: line 6: xauth: command not found
./launch_container.sh: line 6: xauth: command not found
./launch_container.sh: line 10: realpath: command not found
docker: invalid reference format.
See 'docker run --help'.

Does it work on Mac?

This would be so amazing! haven't been able to get sdkmanager working in VMware or virtual box so this would be a life saver!

Barrys-MacBook-Pro:sdk_manager_docker barrymurphy$ ./launch_container.sh
xauth:  file /Users/barrymurphy/.Xauthority does not exist
xauth: (argv):1:  unable to read any entries from file "(stdin)"
bash: /dev/null: Permission denied
jetpack@docker-desktop:~$ sudo ./launch_container.sh
sudo: ./launch_container.sh: command not found
jetpack@docker-desktop:~$ pwd
/home/jetpack
jetpack@docker-desktop:~$ sdkmanager

(sdkmanager:15): Gtk-WARNING **: 03:50:25.401: cannot open display: /private/tmp/com.apple.launchd.6EE10KkFyQ/org.macosforge.xquartz:0

external browser login

In sdk manager version 1.3.1.7110 should login to external browser

I tried install firefox and login in container, but I can't login
What could I do?

Build error

Step 16/21 : COPY --chown=jetpack:jetpack ${SDK_MANAGER_DEB} /home/${USERNAME}/
COPY failed: file not found in build context or excluded by .dockerignore: stat sdkmanager_1.8.0-10363_amd64.deb: file does not exist

Docker host requirements

Hi! Thanks for this tool, I was using it to flash AGX Jetson or a Ubuntu 20.04 system.

You could add in the requirements, that the host system, in addition to docker, must also have package qemu-user-static, since even if run as privileged, docker couldn't install the kernel module for qemu.

(
Jetson OS Image step will result in error, where dpkg command does not match the architecture, and in the docker container
dpkg-reconfigure qemu-user-static complains that it can not load the kernel module.
All of these were fixed by installing the qemu package in the host system too.
)

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.