mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
doc: fix invalid user:group examples in cgroups.md
Introduced in 820b9a77 for v4.15.
Fixes #464
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+6
-6
@@ -88,7 +88,7 @@ The syntax supports combining the name override with other options:
|
|||||||
|
|
||||||
Or with delegation:
|
Or with delegation:
|
||||||
|
|
||||||
service [2345] user:podman group:podman \
|
service [2345] @podman:podman \
|
||||||
cgroup.containers,name:podman,delegate,mem.max:4G \
|
cgroup.containers,name:podman,delegate,mem.max:4G \
|
||||||
/usr/bin/podman system service -- Podman API
|
/usr/bin/podman system service -- Podman API
|
||||||
|
|
||||||
@@ -102,12 +102,12 @@ Cgroup Delegation
|
|||||||
For services that need to create their own child cgroups (container runtimes
|
For services that need to create their own child cgroups (container runtimes
|
||||||
like Docker, Podman, systemd-nspawn, LXC), use the `delegate` option:
|
like Docker, Podman, systemd-nspawn, LXC), use the `delegate` option:
|
||||||
|
|
||||||
service [2345] user:dockerd group:dockerd \
|
service [2345] @dockerd:dockerd \
|
||||||
cgroup.system,delegate /usr/bin/dockerd -- Docker daemon
|
cgroup.system,delegate /usr/bin/dockerd -- Docker daemon
|
||||||
|
|
||||||
Or with the old colon syntax:
|
Or with the old colon syntax:
|
||||||
|
|
||||||
service [2345] user:dockerd group:dockerd \
|
service [2345] @dockerd:dockerd \
|
||||||
cgroup.system:delegate /usr/bin/dockerd -- Docker daemon
|
cgroup.system:delegate /usr/bin/dockerd -- Docker daemon
|
||||||
|
|
||||||
This allows the container runtime to:
|
This allows the container runtime to:
|
||||||
@@ -126,18 +126,18 @@ When delegation is enabled, Finit:
|
|||||||
|
|
||||||
**Requirements:**
|
**Requirements:**
|
||||||
|
|
||||||
- The service should specify `user:` and `group:` for proper ownership
|
- The service should specify `@user:group` for proper ownership
|
||||||
- Controllers are delegated from the parent cgroup
|
- Controllers are delegated from the parent cgroup
|
||||||
|
|
||||||
**Example with additional config (new syntax):**
|
**Example with additional config (new syntax):**
|
||||||
|
|
||||||
service [2345] user:podman group:podman \
|
service [2345] @podman:podman \
|
||||||
cgroup.containers,delegate,mem.max:4G \
|
cgroup.containers,delegate,mem.max:4G \
|
||||||
/usr/bin/podman system service -- Podman API
|
/usr/bin/podman system service -- Podman API
|
||||||
|
|
||||||
**Or with old syntax:**
|
**Or with old syntax:**
|
||||||
|
|
||||||
service [2345] user:podman group:podman \
|
service [2345] @podman:podman \
|
||||||
cgroup.containers:delegate,mem.max:4G \
|
cgroup.containers:delegate,mem.max:4G \
|
||||||
/usr/bin/podman system service -- Podman API
|
/usr/bin/podman system service -- Podman API
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user