Friday 8 April 2022

How to Change Docker cgroup Driver to systemd


docker info | grep -i driver

 Storage Driver: overlay2

 Logging Driver: json-file

 Cgroup Driver: cgroupfs


vim /etc/docker/daemon.json

{

  "exec-opts": ["native.cgroupdriver=systemd"]

}


sudo systemctl restart docker


docker info | grep -i driver

Storage Driver: overlay2

Logging Driver: json-file

Cgroup Driver: systemd


sudo systemctl status docker


Verify that Docker Engine is installed correctly

sudo docker run hello-world


No comments:

Post a Comment