Error response from daemon: failed to create shim: OCI runtime create failed

While following:jetson-inference/aux-docker.md at master · dusty-nv/jetson-inference · GitHub
for Hello AI world:- When run docker/run.sh
CONTAINER: dustynv/jetson-inference:r32.6.1
Jetpack - 4.6
I face this error:-

xhost: unable to open display “”
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --compat32 --graphics --utility --video --display --pid=18792 /var/lib/docker/overlay2/93f03aa434ccd5cc31fb2e1ad08c1c8cb366564898d23423088e473e6a0aeb96/merged]
nvidia-container-cli: initialization error: cuda error: unknown error: unknown.

The same happens when I build from the source. Please help @dusty_nv

Hi,

Have you run xhost + before launching the container.
This will enable the permission for external applications to connect to the host’s X display.

Thanks.

Yes, I did it still shows the error could not find any display.

Hi,

Do you have a display device connected to Nano?
If yes, could you try to set up the environment parameter to see if it helps?

$ export DISPLAY=:0   # or export DISPLAY=:1

Then try xhost + again.
Thanks.

Hi,
I bought a new SD card and followed the process of flashing the jetpack 4.6 over again, it worked!
There was some error with the jetpack that I was using.
Thanks though!

Good to know this!
Thanks for the update.