- 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
Code language: PHP (php)
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals