DeepStream 4.0 Docker Container sample app running error


I pull the deepstream 4.0 docker image from, when I try to run the sample app it gives the following error message:

root@2ca954fa521f:~/deepstream_sdk_v4.0_x86_64/samples# deepstream-app -c ~/deepstream_sdk_v4.0_x86_64/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

(gst-plugin-scanner:23): GStreamer-WARNING **: 18:29:49.241: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/': cannot open shared object file: No such file or directory

(deepstream-app:22): GLib-GObject-CRITICAL **: 18:29:49.323: g_object_set: assertion 'G_IS_OBJECT (object)' failed
** ERROR: <create_render_bin:90>: Failed to create 'sink_sub_bin_sink1'
** ERROR: <create_render_bin:168>: create_render_bin failed
** ERROR: <create_sink_bin:564>: create_sink_bin failed
** ERROR: <create_processing_instance:637>: create_processing_instance failed
** ERROR: <create_pipeline:967>: create_pipeline failed
** ERROR: <main:632>: Failed to create pipeline
App run failed

Please advise how to fix this. Thanks!


It looks like the deepstream-app cannot file the CUDA library. cannot open shared object file: No such file or directory

Would you mind to illustrate how you setup your environment in detail?


I used the instruction here to pull and run the container. In the doc, the cmd is

nvidia-docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /root

I solve the problem by adding

--gpus all

when start the container. I think that may be something wrong with this new nvdocker.

Hi JaneHuang,

Please try this and see if issue gets resolved:

$ sudo docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /root


Yes, as I said, it resolved the problem.

Hi. I am trying to run a sample example of deepstream in docker. But it fails and the error I get is that - app run failed. Tried with all the sources present in the smples but getting the same issue. Please let me know if anybody can help.

Hi ranisomya13,

Please open a new topic for your issue. Thanks