Deepstream on jetson xavier agx with docker ( no work )

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
**• DeepStream 5.1
**• JetPack 4.5.1
• Issue Type( questions, new requirements, bugs)
**• How to reproduce the issue ?
Flash jetson xavier with new sdk in using sdkmanager

open a shell :

docker pull nvcr.io/nvidia/deepstream:5.1-21.02-base
export DISPLAY=:0
xhost +

sudo docker run -it --privileged --rm --net=host --device /dev/nvhost-as-gpu --device /dev/nvhost-ctrl --device /dev/nvhost-ctrl-gpu --device /dev/nvhost-ctxsw-gpu --device /dev/nvhost-dbg-gpu --device /dev/nvhost-gpu --device /dev/nvhost-prof-gpu --device /dev/nvhost-sched-gpu --device /dev/nvhost-tsg-gpu --device /dev/nvmap --device /dev/snd -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix -t nvcr.io/nvidia/deepstream:5.1-21.02-base

or

sudo docker run --privileged -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.1 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream:5.1-21.02-base
standard_init_linux.go:211: exec user process caused “no such file or directory”

can you help me for fix it ?

sudo tail -f /var/log/syslog
[sudo] password for user:
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.427799978+02:00” level=debug msg=“Calling POST /v1.40/containers/2efdd21c518ef0d8e6231eb69b4f978d9790e0fd376620f391bd2b2db3c56567/resize?h=8&w=211”
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.530275993+02:00” level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/exit
Apr 9 15:28:33 xaviertegraagx containerd[5827]: time=“2021-04-09T15:28:33.585067852+02:00” level=info msg=“shim reaped” id=2efdd21c518ef0d8e6231eb69b4f978d9790e0fd376620f391bd2b2db3c56567
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.596224058+02:00” level=debug msg=“attach: stdout: end”
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.596389923+02:00” level=debug msg=“attach: stdin: end”
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.596598414+02:00” level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/delete
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.596673330+02:00” level=info msg=“ignoring event” module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.596249788+02:00” level=debug msg=“attach: stderr: end”
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.596884157+02:00” level=debug msg=“attach done”
Apr 9 15:28:33 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:28:33.597469436+02:00” level=debug msg=“Closing buffered stdin pipe”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.329302340+02:00” level=debug msg=“Calling HEAD /_ping”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.335160825+02:00” level=debug msg=“Calling POST /v1.40/containers/create”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.336478495+02:00” level=debug msg=“form data: {“AttachStderr”:true,“AttachStdin”:true,“AttachStdout”:true,“Cmd”:null,“Domainname”:”",“Entrypoint”:null,“Env”:[“DISPLAY=:1”],“HostConfig”:{“AutoRemove”:true,“Binds”:["/tmp/.X11-unix/:/tmp/.X11-unix"],“BlkioDeviceReadBps”:null,“BlkioDeviceReadIOps”:null,“BlkioDeviceWriteBps”:null,“BlkioDeviceWriteIOps”:null,“BlkioWeight”:0,“BlkioWeightDevice”:,“CapAdd”:null,“CapDrop”:null,“Capabilities”:null,“Cgroup”:"",“CgroupParent”:"",“ConsoleSize”:[0,0],“ContainerIDFile”:"",“CpuCount”:0,“CpuPercent”:0,“CpuPeriod”:0,“CpuQuota”:0,“CpuRealtimePeriod”:0,“CpuRealtimeRuntime”:0,“CpuShares”:0,“CpusetCpus”:"",“CpusetMems”:"",“DeviceCgroupRules”:null,“DeviceRequests”:null,“Devices”:,“Dns”:,“DnsOptions”:,“DnsSearch”:,“ExtraHosts”:null,“GroupAdd”:null,“IOMaximumBandwidth”:0,“IOMaximumIOps”:0,“IpcMode”:"",“Isolation”:"",“KernelMemory”:0,“KernelMemoryTCP”:0,“Links”:null,“LogConfig”:{“Config”:{},“Type”:""},“MaskedPaths”:null,“Memory”:0,“MemoryReservation”:0,“MemorySwap”:0,“MemorySwappiness”:-1,“NanoCpus”:0,“NetworkMode”:“host”,“OomKillDisable”:false,“OomScoreAdj”:0,“PidMode”:"",“PidsLimit”:0,“PortBindings”:{},“Privileged”:true,“PublishAllPorts”:false,“ReadonlyPaths”:null,“ReadonlyRootfs”:false,“RestartPolicy”:{“MaximumRetryCount”:0,“Name”:“no”},“Runtime”:“nvidia”,“SecurityOpt”:null,“ShmSize”:0,“UTSMode”:"",“Ulimits”:null,“UsernsMode”:"",“VolumeDriver”:"",“VolumesFrom”:null},“Hostname”:"",“Image”:“nvcr.io/nvidia/deepstream:5.1-21.02-base",“Labels”:{},“NetworkingConfig”:{“EndpointsConfig”:{}},“OnBuild”:null,“OpenStdin”:true,“StdinOnce”:true,“Tty”:true,“User”:"",“Volumes”:{},“WorkingDir”:"/opt/nvidia/deepstream/deepstream-5.1"}"
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.398821277+02:00” level=debug msg=“container mounted via layerStore: &{/var/lib/docker/overlay2/ace6314005a8593aadb86997c3c3139077d302b53377df04837116c14853ec97/merged 0x558b6e2e60 0x558b6e2e60}”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.448212271+02:00” level=debug msg=“Calling POST /v1.40/containers/2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4/attach?stderr=1&stdin=1&stdout=1&stream=1”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.448889587+02:00” level=debug msg=“attach: stdin: begin”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.449089918+02:00” level=debug msg=“attach: stdout: begin”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.449242374+02:00” level=debug msg=“attach: stderr: begin”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.450864828+02:00” level=debug msg=“Calling POST /v1.40/containers/2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4/wait?condition=removed”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.454258895+02:00” level=debug msg=“Calling POST /v1.40/containers/2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4/start”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.460191208+02:00” level=debug msg=“container mounted via layerStore: &{/var/lib/docker/overlay2/ace6314005a8593aadb86997c3c3139077d302b53377df04837116c14853ec97/merged 0x558b6e2e60 0x558b6e2e60}”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.475110461+02:00” level=debug msg=“EnableService 2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4 START”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.475263045+02:00” level=debug msg=“EnableService 2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4 DONE”
Apr 9 15:31:24 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:24.496775926+02:00” level=debug msg=“bundle dir created” bundle=/var/run/docker/containerd/2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4 module=libcontainerd namespace=moby root=/var/lib/docker/overlay2/ace6314005a8593aadb86997c3c3139077d302b53377df04837116c14853ec97/merged
Apr 9 15:31:24 xaviertegraagx containerd[5827]: time=“2021-04-09T15:31:24.570754971+02:00” level=info msg=“shim containerd-shim started” address=“unix:///run/containerd/s/9ee21ea1c0482c575551029fe6a7545ff25d2fe27dc557541befaba4718ebf77” debug=false pid=26176
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.432287026+02:00” level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/create
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.532625416+02:00” level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/start
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.548493551+02:00” level=debug msg=“Calling POST /v1.40/containers/2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4/resize?h=8&w=211”
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.649635248+02:00” level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/exit
Apr 9 15:31:25 xaviertegraagx containerd[5827]: time=“2021-04-09T15:31:25.704747056+02:00” level=info msg=“shim reaped” id=2a993d6dfc37566db48ff53ebffa9290e83e7ba2b8bca9482d62a2450a22e6f4
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.715718548+02:00” level=debug msg=“attach: stdout: end”
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.716145546+02:00” level=debug msg=“attach: stdin: end”
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.716420697+02:00” level=debug msg=“attach: stderr: end”
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.716820430+02:00” level=debug msg=“attach done”
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.717473040+02:00” level=debug msg=“Closing buffered stdin pipe”
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.717532660+02:00” level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/delete
Apr 9 15:31:25 xaviertegraagx dockerd[22107]: time=“2021-04-09T15:31:25.717872101+02:00” level=info msg=“ignoring event” module=libcontainerd namespace=moby topic=/tasks/delete type=”*events.TaskDelete"

Hi,

The container deepstream:5.1-21.02-base is for desktop user.
For Jetson, please use the container with “l4t” tag. (ex. deepstream-l4t:5.1-21.02-samples).

For example:

sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.1 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples

Thanks.