Skip to content

Commit f92057a

Browse files
kolyshkinlifubang
authored andcommitted
tests/int: update set_cgroups_path doc
Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 19f76b6 commit f92057a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration/helpers.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,12 @@ function set_parent_systemd_properties() {
184184
}
185185

186186
# Randomize cgroup path(s), and update cgroupsPath in config.json.
187-
# This function sets a few cgroup-related variables.
187+
# This function also sets a few cgroup-related variables that are used
188+
# by other cgroup-related functions.
189+
#
190+
# If this function is not called (and cgroupsPath is not set in config),
191+
# runc uses default container's cgroup path derived from the container's name
192+
# (except for rootless containers, that have no default cgroup path).
188193
#
189194
# Optional parameter $1 is a pod/parent name. If set, a parent/pod cgroup is
190195
# created, and variables $REL_PARENT_PATH and $SD_PARENT_NAME can be used to

0 commit comments

Comments
 (0)