Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5324

Troubleshooting • Re: Is there a way to use RPi._GPIO in docker without --privileged?

$
0
0
See if this old post of mine helps with anything.

viewtopic.php?t=361857#p2171189

Please note that that post, the following:
docker run --device=/dev/gpiomem:/dev/gpiomem:/dev/gpiomem:/dev/gpiomem
Should really be this:

Code:

docker run --device=/dev/gpiomem:/dev/gpiomem:/dev/gpiomem:/dev/gpiomem 
The first one contains the tags to bold some text, but apparently it does not work when it is used between the code tags, so the extra tags are displayed. And the post is too old and I can't edit it anymore.
The issue I'm having has nothing to do with user permissions, because root gives that error as well in the guest. For what it's worth, I already have these groups setup from the very beginning when it used to work.

EDIT: Sorry, forgot to mention: 3 devices are already shared, gpiomem, gpiochip0 and gpiochip1. No difference.

Statistics: Posted by Gumdrop — Thu Aug 01, 2024 4:34 pm



Viewing all articles
Browse latest Browse all 5324

Trending Articles