Hi! Im am trying to deploy my python app to Jetson Nano 2gb with docker. Firstly I solved problem with upgraded docker issue by following instructions from this topic:
after downgrading docker, building new image and running a new container with this command:
sudo docker run --runtime nvidia -it \
--name=7food-fridge \
--restart=always \
--network host -e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v /tmp/argus_socket:/tmp/argus_socket \
-v /etc/enctune.conf:/etc/enctune.conf \
-v /etc/udev/rules.d:/etc/udev/rules.d \
-v /dev:/dev \
-v /sys/class/gpio:/sys/class/gpio \
-v /sys/devices:/sys/devices \
-v /dev/gpiochip0:/dev/gpiochip0 \
-v /dev/gpiochip1:/dev/gpiochip \
$V4L2_DEVICES $V4L2_DEVICES_TTY \
7food-fridge
app raise error like that:
Traceback (most recent call last):
File "src/main.py", line 8, in <module>
import modules.detection as detection
File "/usr/scr/app/src/modules/detection.py", line 2, in <module>
import jetson.inference
File "/usr/lib/python3.6/dist-packages/jetson/inference/__init__.py", line 8, in <module>
from jetson_inference_python import *
ImportError: /usr/lib/aarch64-linux-gnu/libnvinfer.so.7: file too short
I tried add “default-runtime”: “nvidia” to /etc/docker/daemon.json, rebuild image and reboot machine, but that didn’t work. Also app works fine without docker.
My docker image based on dustynv/jetson-inference:r32.5.0