- 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
Docker Advance Tutorial | Part 1 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 2 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 3 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 4 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 5 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 6 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 7 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 8 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 9 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 10 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 11 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 13 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 14 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 15 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 16 out 16 | — By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Implementing Managed IT Services: A Step-by-Step Guide - August 30, 2024
- DevOps Foundation Certification - August 29, 2024
- SRE Foundation Certification - August 29, 2024