- How to change the cgroup driver from cgroupfs to systemd in RHEL/Centos?
- How to change the cgroup driver from cgroupfs to systemd in Ubuntu
Resolving the problem
Change the Docker cgroup to systemd by editing the Docker service with the following command:
$ systemctl status docker
Check following section
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
$ vi /usr/lib/systemd/system/docker.service
Modify this line
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
To
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --exec-opt native.cgroupdriver=systemd
#Restart the Docker service by running the following command:
$ systemctl daemon-reload
$ systemctl restart docker
# Verify the cgroups driver to systemd
$ docker info

















I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND