NVIDIA-AI-IOT/jetbot

An error occurred when using Docker to start

kkive opened this issue · 1 comments

kkive commented

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

  1. You should execute the script from the docker folder; it runs with a relative file path.
    • Incorrect: <username>@<comp>: ~/.../jetbot$ ./docker/enable.sh
    • Correct: <username>@<comp>: ~/.../jetbot/docker$ ./enable.sh $HOME
  2. I believe you are also missing part of that command; it should be: ./enable.sh $HOME

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).