Issue with assigning containers to cgroups

Im having an issue trying to assign containers to various cgroups.

The only success that I have had is when I set a limit on the root blkio subsystem. If I try to assign a limit inside the directory created under cgroups for the container it does not work.

Do anyone know why this might be happening?

Thanks.

you need to create a cgroup for the container.
for example
use “docker top containerId” to get the pid of the container.
maker -p /sys/fs/cgroup/blkio/mycgroup
change the properties in that directory, for example blkio.weight
then execute "echo PID > /sys/fs/cgroup/blkio/mycgroup/tasks