Torizon Docker Container Privileges

Apalis IMX8QM 4GB IT V1.1B
Apalis Carrier Board V1.1C
TorizonCore Linux 5.6.0+build.13

RTCF Torizon Issue

Hi,

We are running a custom container using docker that calls on pthread_create. We’re running into an error that states “pthread_create: Operation not permitted”. We’ve previously used the --privilege flag with docker run to overcome this issue on other platforms, but it doesn’t work with torizon. Are there additional privileges needed to use the pthread library from within the container?

Greetings @jpeg,

I’m not aware of any such limitations. Could you share your setup with us? Namely:

  • The code you’re running or just small code example that exhibits this issue
  • How you’re building everything (code and container)
  • How you’re executing this container

If we can reproduce this on our side we can better investigate it.

Best Regards,
Jeremias

Well,

I use nanogui inside docker containers on Torizon and the application has a lot of threads

Speculating out of the blue, you are trying to change thread priority/scheduling when creating or you are hitting a limit.

Read the first two links first. Hopefully an application redesign will fix your issue.
The third link might well be what you are running into though. I haven’t read all the way to the end of that message thread though.

Hi,

Unfortunately, I’m unable to share any of the code. However, I tried running the application again using one of the TorizonCore images with the PREEMPT_RT patch, and was able to get it working. The application was typically run on a real-time linux system, so that might have been the issue. Thanks for the help!

Glad to see you were able to get this resolved. However, you should be aware that the PREEMPT_RT versions of TorizonCore have some known issues especially on the i.MX8. Just keep this in mind.

Best Regards,
Jeremias