NVIDIA-AI-IOT / jetbot

An educational AI robot based on NVIDIA Jetson Nano.
MIT License
2.97k stars 1.02k forks source link

Issue running enable.sh with Docker #585

Open collabnix opened 1 year ago

collabnix commented 1 year ago

Hi,

I was trying out configuring Jetbot using Docker. I followed https://github.com/NVIDIA-AI-IOT/jetbot/tree/master/docker but faced the following error:

./enable.sh $HOME
JETBOT_BASE_IMAGE not found for 32.7.1.  Please manually set the JETBOT_BASE_IMAGE environment variable. (ie: export JETBOT_BASE_IMAGE=...)
JETBOT_VERSION=0.4.3
L4T_VERSION=32.7.1
JETBOT_BASE_IMAGE=[nvcr.io/nvidia/l4t-pytorch:r32.6.1-pth1.9-py3](http://nvcr.io/nvidia/l4t-pytorch:r32.6.1-pth1.9-py3)
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
Unable to find image 'jetbot/jetbot:display-0.4.3-32.7.1' locally
docker: Error response from daemon: manifest for jetbot/jetbot:display-0.4.3-32.7.1 not found: manifest unknown: manifest unknown.
See 'docker run --help'.
Unable to find image 'jetbot/jetbot:jupyter-0.4.3-32.7.1' locally

In order to fix the issue, I added the following code:

elif [[ "$L4T_VERSION" == "32.7.1" ]]
then
        JETBOT_BASE_IMAGE=nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2-py3

else
    echo "JETBOT_BASE_IMAGE not found for ${L4T_VERSION}.  Please manually set the JETBOT_BASE_IMAGE environment variable. (ie: export JETBOT_BASE_IMAGE=...)"
fi

I am able to fix JETBOT_BASE_IMAGE but look like display and jupyter needs to be fixed. Any idea?