Cgroup features in Docker

Hi,

cgroups allow the user to specify limits on the block IO of a group of processes and also to assign priorities (in the form of weights) for the network usage. Why are these features not exposed to the Docker user (assigning weights for block IO is, setting limits is not)? How difficult would it be to expose these to the user?

Is this what you’re looking for? https://docs.docker.com/reference/run/#runtime-constraints-on-resources

Yes, that is what I’m referring to. The docs say how you use the --blkio-weight option to set a weight (priority) for block IO. There is however no option to set a hard limit on the IO (say 1Mbps) while with cgroups you can do this. Why this is not exposed in Docker is my question.