Help Center/ Intelligent EdgeFabric/ FAQs/ Edge Node FAQs/ How Do I Set Docker Cgroup Driver After Installing Docker on an Edge Node?
Updated on 2022-12-09 GMT+08:00

How Do I Set Docker Cgroup Driver After Installing Docker on an Edge Node?

After installing Docker on an edge node, you must set Docker Cgroup Driver to cgroupfs. Generally, it is set to cgroupfs by default. For other values, perform the following steps to reset it:

  1. Run the docker info command to check whether the value of the Cgroup Driver parameter is cgroupfs. If not, go to the next step.

    ...
    Logging Driver: json-file
    Cgroup Driver: cgroupfs
    Hugetlb Pagesize: 2MB, 1GB (default is 2MB)
    Plugins:
     Volume: local
     Network: bridge host macvlan null overlay
    ...

  2. Run the vim /etc/docker/daemon.json command to create a Docker configuration file or edit an existing one (if any).
  3. Add the following content to the configuration file:

    {
        "exec-opts": ["native.cgroupdriver=cgroupfs"]
    }

    If the file contains content, add a comma (,) at the end of the last line before adding the new content.

  4. Run the systemctl daemon-reload && systemctl restart docker command to reload the configuration file and restart Docker.