Docker_dli_run error

i have jetson nano 4gb

and i using image [jetson-nano-4gb-jp441-sd-card-image]

i try to run Docker container with following command

echo "sudo docker run --runtime nvidia -it --rm --network host \
    --volume ~/nvdli-data:/nvdli-nano/data \
    --device /dev/video0 \
    nvcr.io/nvidia/dli/dli-nano-ai:v2.0.1-r32.4.4" > docker_dli_run.sh
chmod +x docker_dli_run.sh
./docker_dli_run.sh

i get following message in terminal:
docker: invalid reference format.
See ‘docker run --help’.
./docker_dli_run.sh: line 4: nvcr.io/nvidia/dli/dli-nano-ai:v2.0.1-r32.4.4: No such file or directory

could you help me?

without saving .sh i run in terminal directly as

sudo docker run --runtime nvidia -it --rm --network host
–volume ~/nvdli-data:/nvdli-nano/data
–device /dev/video0
nvcr.io/nvidia/dli/dli-nano-ai:v2.0.1-r32.4.4

and the output is as shown in screenshot below

Hi @rajkumarsaswamy, it appears OK when you ran the command directly - in your screenshot, it is downloading the container from NGC. It should then run it for you when the download is complete.

I’m not sure why your docker_dli_run.sh script didn’t run, because I copy/pasted it and it worked here…

Perhaps you could open it in a file editor from your Nano (like nano or vi) and enter it there to rule out any issue with Windows/Linux line endings or something like that.

1 Like