Hello, I am running Ubuntu 18.04 with JetPack 4.6 and I installed the jetson-inference module. I want to use the GPIO ports to communicate with an arduino. I am ok with re-installing Jetson.GPIO every session, however, I cannot access the ports on the jetson nano from the container. Ive tried running
Hi @yjain0102, you would need to edit the script and add the --privileged flag to the docker run command that gets executed here:
If preferred, you can just extract that command that gets executed and run it yourself, without needing my docker/run.sh helper script at all. My script does dynamic detection of cameras, displays, ect, and mounts various directories/devices but once those are set the command won’t change. You can also add a +x to the top of that script and bash will print out all the commands it executes, allowing you to see the exact docker run command that gets composed.
Thank you Dusty! I am unsure how I would write the --privileged flag. Could I just add --privileged after sudo docker run or do I need something specific?
The order of arguments to ‘docker run’ generally doesn’t matter, except that options for configuring the container start-up come before the container name/tag (in this case, $CONTAINER_IMAGE). While the initial command that the container runs once it’s started comes after the container name/tag ($USER_COMMAND - by default, /bin/bash)