I want to docker to start with systemd cgroup driver. for some reason it using only cgroupfs on my centos 7 server.
here is startup config file.
# system
A solution that does not involve editing systemd units or drop-ins would be to create (or edit) the /etc/docker/daemon.json
configuration file and to include the following:
{
"exec-opts": ["native.cgroupdriver=systemd"]
}
After saving it, restart your docker service.
sudo systemctl restart docker
This solution obviously is only feasible if you would want to apply this system-wide.