File tree Expand file tree Collapse file tree 3 files changed +25
-22
lines changed Expand file tree Collapse file tree 3 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -577,27 +577,29 @@ chown -R the_user.the_user /sys/fs/cgroup/systemd
577
577
.EE
578
578
579
579
.SH \fB run.oci.systemd.subgroup=SUBGROUP \fR
580
- Override the name for the systemd sub cgroup created under the systemd
581
- scope, so the final cgroup will be like:
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:
582
586
583
587
.EX
584
588
/sys/fs/cgroup/$PATH/$SUBGROUP
585
589
.EE
586
590
587
591
.PP
588
- When it is set to the empty string, a sub cgroup is not created.
589
-
590
- .PP
591
- If not specified, it defaults to \fB container \fR on cgroup v2, and to \fB "" \fR
592
- on cgroup v1.
593
-
594
- .PP
595
- e.g.
592
+ If \fB SUBGROUP \fR is set to \fB container \fR , a typical path could be:
596
593
597
594
.EX
598
- /sys/fs/cgroup// system.slice/foo-352700.scope/container
595
+ /sys/fs/cgroup/system.slice/foo-352700.scope/container
599
596
.EE
600
597
598
+ .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.
602
+
601
603
.SH \fB run.oci.delegate-cgroup=DELEGATED-CGROUP \fR
602
604
If the \fB run.oci.systemd.subgroup \fR annotation is specified, yet another
603
605
sub-cgroup is created and the container process is moved here.
Original file line number Diff line number Diff line change @@ -489,24 +489,25 @@ chown -R the_user.the_user /sys/fs/cgroup/systemd
489
489
490
490
## ` run.oci.systemd.subgroup=SUBGROUP `
491
491
492
- Override the name for the systemd sub cgroup created under the systemd
493
- scope, so the final cgroup will be like:
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:
494
497
495
498
```
496
499
/sys/fs/cgroup/$PATH/$SUBGROUP
497
500
```
498
501
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
-
502
+ If ` SUBGROUP ` is set to ` container ` , a typical path could be:
506
503
```
507
- /sys/fs/cgroup// system.slice/foo-352700.scope/container
504
+ /sys/fs/cgroup/system.slice/foo-352700.scope/container
508
505
```
509
506
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
+
510
511
## ` run.oci.delegate-cgroup=DELEGATED-CGROUP `
511
512
512
513
If 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)
1987
1987
return annotation ;
1988
1988
}
1989
1989
1990
- return "container" ;
1990
+ return NULL ;
1991
1991
}
1992
1992
1993
1993
static int
You can’t perform that action at this time.
0 commit comments