File tree Expand file tree Collapse file tree 3 files changed +22
-25
lines changed Expand file tree Collapse file tree 3 files changed +22
-25
lines changed Original file line number Diff line number Diff line change @@ -577,28 +577,26 @@ chown -R the_user.the_user /sys/fs/cgroup/systemd
577577 .EE
578578
579579.SH \fB run.oci.systemd.subgroup=SUBGROUP \fR
580- This configuration option allows you to define a sub-cgroup that will
581- be created under a systemd-managed cgroup for your container.
582-
583- .PP
584- When SUBGROUP is specified, the complete cgroup path will follow this
585- structure:
580+ Override the name for the systemd sub cgroup created under the systemd
581+ scope, so the final cgroup will be like:
586582
587583.EX
588584/sys/fs/cgroup/$PATH/$SUBGROUP
589585 .EE
590586
591587.PP
592- If \fB SUBGROUP \fR is set to \fB container \fR , a typical path could be:
588+ When it is set to the empty string , a sub cgroup is not created.
593589
594- .EX
595- /sys/fs/ cgroup/system.slice/foo-352700.scope/container
596- . EE
590+ .PP
591+ If not specified, it defaults to \fB container \fR on cgroup v2, and to \fB "" \fR
592+ on cgroup v1.
597593
598594.PP
599- If \fB SUBGROUP \fR is set to an empty string, no sub-cgroup will be
600- created. By default, this option is not configured, meaning no
601- sub-cgroup is created unless explicitly set.
595+ e.g.
596+
597+ .EX
598+ /sys/fs/cgroup//system.slice/foo-352700.scope/container
599+ .EE
602600
603601.SH \fB run.oci.delegate-cgroup=DELEGATED-CGROUP \fR
604602If the \fB run.oci.systemd.subgroup \fR annotation is specified, yet another
Original file line number Diff line number Diff line change @@ -489,25 +489,24 @@ chown -R the_user.the_user /sys/fs/cgroup/systemd
489489
490490## ` run.oci.systemd.subgroup=SUBGROUP `
491491
492- This configuration option allows you to define a sub-cgroup that will
493- be created under a systemd-managed cgroup for your container.
494-
495- When SUBGROUP is specified, the complete cgroup path will follow this
496- structure:
492+ Override the name for the systemd sub cgroup created under the systemd
493+ scope, so the final cgroup will be like:
497494
498495```
499496/sys/fs/cgroup/$PATH/$SUBGROUP
500497```
501498
502- If ` SUBGROUP ` is set to ` container ` , a typical path could be:
499+ When it is set to the empty string, a sub cgroup is not created.
500+
501+ If not specified, it defaults to ` container ` on cgroup v2, and to ` "" `
502+ on cgroup v1.
503+
504+ e.g.
505+
503506```
504- /sys/fs/cgroup/system.slice/foo-352700.scope/container
507+ /sys/fs/cgroup// system.slice/foo-352700.scope/container
505508```
506509
507- If ` SUBGROUP ` is set to an empty string, no sub-cgroup will be
508- created. By default, this option is not configured, meaning no
509- sub-cgroup is created unless explicitly set.
510-
511510## ` run.oci.delegate-cgroup=DELEGATED-CGROUP `
512511
513512If the ` run.oci.systemd.subgroup ` annotation is specified, yet another
Original file line number Diff line number Diff line change @@ -1987,7 +1987,7 @@ find_systemd_subgroup (string_map *annotations)
19871987 return annotation ;
19881988 }
19891989
1990- return NULL ;
1990+ return "container" ;
19911991}
19921992
19931993static int
You can’t perform that action at this time.
0 commit comments