Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to change the cgroup driver from cgroupfs systemd in docker?

  • 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

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.