Skip to content

Commit 7b4206c

Browse files
kolyshkincyphar
authored andcommitted
docs/systemd: add references
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 7abce92 commit 7b4206c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/systemd.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ When creating a container, runc requests systemd (over dbus) to create
1111
a transient unit for the container, and place it into a specified slice.
1212

1313
The name of the unit and the containing slice is derived from the container
14-
runtime spec in the following way:
14+
[runtime spec] in the following way:
1515

16-
1. If `Linux.CgroupsPath` is set, it is expected to be in the form
16+
1. If [Linux.CgroupsPath] is set, it is expected to be in the form
1717
`[slice]:[prefix]:[name]`.
1818

1919
Here `slice` is a systemd slice under which the container is placed.
@@ -32,7 +32,7 @@ runtime spec in the following way:
3232
is `<prefix>-<name>.scope`, unless `name` has `.slice` suffix, in
3333
which case `prefix` is ignored and the `name` is used as is.
3434

35-
2. If `Linux.CgroupsPath` is not set or empty, it works the same way as if it
35+
2. If [Linux.CgroupsPath] is not set or empty, it works the same way as if it
3636
would be set to `:runc:<container-id>`. See the description above to see
3737
what it transforms to.
3838

@@ -102,7 +102,7 @@ The following tables summarize which properties are translated.
102102
| unified.pids.max | TasksMax | |
103103

104104
For documentation on systemd unit resource properties, see
105-
`systemd.resource-control(5)` man page.
105+
[systemd.resource-control(5)] man page.
106106

107107
### Auxiliary properties
108108

@@ -129,3 +129,7 @@ The values must be in the gvariant text format, as described in
129129

130130
To find out which type systemd expects for a particular parameter, please
131131
consult systemd sources.
132+
133+
[runtime spec]: https://github.com/opencontainers/runtime-spec/blob/main/spec.md
134+
[Linux.CgroupsPath]: https://github.com/opencontainers/runtime-spec/blob/main/config-linux.md#cgroups-path
135+
[systemd.resource-control(5)]: https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html

0 commit comments

Comments
 (0)