Long-Term Supported Versions

    Innovation Versions

      Configurable Cgroup Path

      Function Description

      System containers provide the capabilities of isolating and reserving container resources on hosts. You can use the --cgroup-parent parameter to specify the cgroup directory used by a container to another directory, thereby flexibly allocating host resources. For example, if the cgroup parent path of containers A, B, and C is set to /lxc/cgroup1, and the cgroup parent path of containers D, E, and F is set to /lxc/cgroup2, the containers are divided into two groups through the cgroup paths, implementing resource isolation at the cgroup level.

      Parameter Description



      Value Description

      isula create/run


      • Variable of the string type.
      • Specifies the cgroup parent path of the container.

      In addition to specifying the cgroup parent path for a system container using commands, you can also specify the cgroup paths of all containers by modifying the startup configuration files of the iSulad container engine.

      Configuration File Path





      • Variable of the string type.
      • Specifies the default cgroup parent path of the container.
      • Example: "cgroup-parent": "/lxc/mycgroup"


      • If the cgroup parent parameter is set on both the daemon and client, the value specified on the client takes effect.
      • If container A is started before container B, the cgroup parent path of container B is specified as the cgroup path of container A. When deleting a container, you need to delete container B and then container A. Otherwise, residual cgroup resources exist.


      Start a system container and specify the --cgroup-parent parameter.

      [root@localhost ~]# isula run -tid --cgroup-parent /lxc/cgroup123 --system-container --external-rootfs /root/myrootfs none init

      Check the cgroup information of the init process in the container.

      [root@localhost ~]# isula inspect -f "{{json .State.Pid}}" 11
      [root@localhost ~]# cat /proc/22167/cgroup

      The cgroup parent path of the container is set to /sys/fs/cgroup/<controller>/lxc/cgroup123.

      In addition, you can configure the container daemon file to set the cgroup parent paths for all containers. For example:

               "cgroup-parent": "/lxc/cgroup123",

      Restart the container engine for the configuration to take effect.

      Bug Catching

      Buggy Content

      Bug Description

      Submit As Issue

      It's a little complicated....

      I'd like to ask someone.


      Just a small problem.

      I can fix it online!

      Bug Type
      Specifications and Common Mistakes

      ● Misspellings or punctuation mistakes;

      ● Incorrect links, empty cells, or wrong formats;

      ● Chinese characters in English context;

      ● Minor inconsistencies between the UI and descriptions;

      ● Low writing fluency that does not affect understanding;

      ● Incorrect version numbers, including software package names and version numbers on the UI.


      ● Incorrect or missing key steps;

      ● Missing prerequisites or precautions;

      ● Ambiguous figures, tables, or texts;

      ● Unclear logic, such as missing classifications, items, and steps.


      ● Technical principles, function descriptions, or specifications inconsistent with those of the software;

      ● Incorrect schematic or architecture diagrams;

      ● Incorrect commands or command parameters;

      ● Incorrect code;

      ● Commands inconsistent with the functions;

      ● Wrong screenshots.

      Risk Warnings

      ● Lack of risk warnings for operations that may damage the system or important data.

      Content Compliance

      ● Contents that may violate applicable laws and regulations or geo-cultural context-sensitive words and expressions;

      ● Copyright infringement.

      How satisfied are you with this document

      Not satisfied at all
      Very satisfied
      Click to create an issue. An issue template will be automatically generated based on your feedback.
      Bug Catching
      编组 3备份