Yes, Exaga, and that's fine !
The problem is that in the kernel code there is:
Code:
@@ -5388,6 +5388,7 @@ struct cgroup_subsys memory_cgrp_subsys = {
.dfl_cftypes = memory_files,
.legacy_cftypes = mem_cgroup_legacy_files,
.early_init = 0,
.disabled = 1,
};
This means that when you boot the kernel, the option is provided, so you find them in :
Code:
# cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
...
memory 0 1 0
...
Thus dockerd try to use them but fail.
There are two option to workaround this problem:
1) unset the option and rebuild the kernel ( too much time consuming and must be repeated for every kernel upgrade )
2) add the
cgroup_enable=memory in the cmdline.txt and enable the presence and use of memory cgroups in the running kernel, which is what I did.
with this option enabled, now I have:
Code:
# cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
...
memory 5 4 1
...
And that's why I have created this post, and marked as SOLVED
I've searched a lot but find really few about my problem so I decided to write the post in case others have the same problem.
Not sure how much are using docker on Pi, and if someone would use "your" new kernel can have the same issue and find here the fix
Pigi