i am relatively new to this and i’m having a problem with a new install of docker,
when i try to run for example
docker run hello-world , i get an error:
# docker run hello-world docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.
from what i found, this is because my system uses cgroups v2, but docker 20.10 is supposed to support it.
when i run
docker -version :
# docker --version Docker version 20.10.7, build f0df350
So i should be good, then i found
docker info that shows you server version and cgroup driver, that for cgroup v2 should look like this:
# docker info (...) Server Version: 20.10.0 Storage Driver: fuse-overlayfs Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 (...)
but when i run it:
# docker info (...) Server Version: 19.03.13 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs (...)
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?