I've configured Docker on my Ubuntu 18.04 Server to expose its API so I can create and deploy Docker containers via REST requests, which I need to add certain features to my project. This worked fine for first few endpoints I tried. However, when I attempt to create a new Docker container (the main point of the exercise), I get the message:

{"message": "Your kernel does not support cgroup cpu real-time period"}

Is this true? Alternatively is it instead that I need to set something up to enable this functionality, or is Docker reporting incorrectly?

curl -X POST -H "Content-Type: application/json" -d "@./test-data/docker-create-api-test.json" http://localhost:1112/containers/create
{"message":"Your kernel does not support cgroup cpu real-time period"}

Very grateful for any assistance given as this functionality is critical to my project.


1 Answer 1


In the official Docker example that I had wrongly assumed would work as a test body, there was the following line:

"CpuRealtimePeriod": 1000000,

Which sets a value that, it seems, is not supported by most or perhaps any out of the box Linux distros. Arch Linux master race ;).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.