dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
2.23k stars 457 forks source link

Unable to run CUDA/tensorrt related operations using docker-compose #196

Closed MrOCW closed 2 years ago

MrOCW commented 2 years ago

Hi, I am able to run CUDA related applications when running the containers separately. However, when using docker-compose to run the applications, I am getting errors like: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory

ImportError: libnvdla_compiler.so: cannot open shared object file: No such file or directory

although ls /usr/local shows that the cuda folder is present

I am using a Jetson Orin AGX/Jetpack 5.0.2, using dustynv/ros:galactic-ros-base-l4t-r35.1.0

MrOCW commented 2 years ago

Apologies for the silly mistake, missed adding "default-runtime": "nvidia" to etc/docker/daemon.json