NVIDIA-AI-IOT / jetbot

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

An error occurred when using Docker to start #564

Open kkive opened 1 year ago

kkive commented 1 year ago

Hello, engineer, I'm following the official operation manual【 https://jetbot.org/master/reference/docker_tips.html

When running to step 5 `cd docker

./enable.sh`

How can I solve the following errors nvidia@nvidia-desktop:~/下载/jetbot$ ./docker/enable.sh ./docker/enable.sh: 行 1: configure.sh: No such file or directory ./docker/enable.sh: 行 11: ./display/enable.sh: No such file or directory ./docker/enable.sh: 行 12: ./jupyter/enable.sh: No such file or directory

We look forward to your reply

santaimpersonator commented 1 year ago

1) You should execute the script from the docker folder; it runs with a relative file path.

If you are still having issues, make sure to enable the read/write/execute permissions of the scripts and try the following:

  # Configure the Environment Variables
  cd ~/jetbot/docker && source configure.sh

  # Build Docker Container
  cd ~/jetbot/docker && ./build.sh

  # Run Docker Container
  cd ~/jetbot/docker && ./enable.sh $HOME

You can just change directories into the docker folder (cd ~/jetbot/docker) and then run the three scripts in sequence. I found running the configure.sh script with the source command more reliable (I think someone posted about it a while back).