I do not have the correct Cgroup Driver, Cgroup version does not even exist, i can not find a reason for this online, but i think that having docker 20.10 and my server version is 19.03 is causing the problem, this was a machine that did not had any previous docker installed, so the 20.10 install for some reason used a 19.03 server version. (why??)
I am not sure if this will fix may problems with Cgroups, but how can i update the server version to 20.10?
Please share the exact(!) commands you used to installed docker. (hint: please do not share a link to docs/blogposts, I realy want to specificly see the commands you used).
Also I am currious what the ouput of sudo docker version look like on your installation…
gave me that there was nothing installed, so i just follow exactly what was on the official page to install it.
the wierd part that generated all my confusion was that when i realized something was wrong i run which docker and it was pointing to my install, but the docker run hello-world was pointing to the snap installation.
so i removed all installations and surprise it worked!!
Just wierd that which was not pointing to the docker installation it was using, but maybe it is just my lack of experience with linux, and i am sure that docker -v returned the correct version…
The problem is that there are two versions of cgroup - v1 and v2 - which are incompatible. Linux distributions (probably in the meantime all of them) switched to v2 as default. E.g. Debian since 11. On the other side Docker supports cgroup v2 since v20.10. Using an older Docker version (like in my case it was 19.03.13) on a news OS (Debian 12) leads to the cgroup-error.