Executing real-time task in Docker

I’ve got a real-time application that runs in a Docker container. It does some heavy signal processing but also uses USB3 to communicate to an external radio device in a timely manner. This device has an accurate clock and detects when data is late and isn’t arriving at the right time from the CPU.
I’ve observed that when running this app in Docker I get periodic lates roughly every 100s and I’d like to know where those come from. I’ve started playing around with various dockerd options like logging and storage, etc. but this didn’t change anything.

Any idea what could kick in there in a periodic fashion?

I am running Docker on a Ubuntu 16.04 with vanilla Ubuntu kernel but also tried RT kernels and low-latency kernels without much difference.

Any help would be highly appreciated.


Hi Andre,
I would like to do the same. I have RT preempt -patched kernel in Ubuntu.
Did you find a solution in the meantime?
Are you still running your RT application in Docker? Would you recommend doing it?