Can't run deepstream-app on deepstream container

I’m running on a jetson nano and pulled the deepstream container with:

docker pull

Inside the container I try running the reference app and get this error:

root@b4e86d5a98a6:~/deepstream_sdk_v4.0.2_jetson/samples/configs/deepstream-app# deepstream-app -c source1_csi_dec_infer_resnet_int8.txt 
deepstream-app: error while loading shared libraries: cannot open shared object file: No such file or directory

Any ideas on how to fix this?

I found the solution: I forgot to include the --runtime nvidia flag when running the container.

Does anyone know if this can be set in a Dockerfile or docker-compose.yml file or only on command line?


The argument is essential to tell the docker that you want to use nvidia runtime.

what about just creating an alias

alias nvdocker='docker --runtime nvidia'

maybe add it to ~/.bashrc