-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError when using within Docker container #14
Comments
@Gadgetoid Any ideas on this error? Is there additional information I can provide to help debug/evaluate? |
@charliesneath Do you run your docker with user 0, group 0 and privileged option? |
@sylvek I wasn't setting this explicitly, but I will look into doing so. Do you have any examples? |
based on docker is running with root account |
@sylvek That did the trick, thank you. |
Sync with upstream
Is there any way to get this to work without the --privileged mode? What devices should be mapped to the docker container? |
This would be better asked on the repo for the underlying library, since the Python bindings don't affect its limitations - https://github.com/jgarff/rpi_ws281x However, I suspect the answer is no. But you could paint what I know about Docker on the head of a pin with a firehose. |
When running my program within a Docker container, I get the following error, which I believe is related to
rpi_ws281xs
's ability to interact with the hardware from the Docker container:Is there a way to make this library work within a Docker container?
Also reported at jgarff/rpi_ws281x#351.
The text was updated successfully, but these errors were encountered: