Docker Community Forums

Share and learn in the Docker community.

Cgroup features in Docker

(Pratik Fegade) #1


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?

(Andy Rothfusz) #2

Is this what you’re looking for?

(Pratik Fegade) #3

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.