diff options
author | rebortg <github@ghlr.de> | 2024-06-11 16:56:52 +0200 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2024-06-11 16:56:52 +0200 |
commit | 579c5cc953c8f5ac2a17218fd8d58b4a53bab7ca (patch) | |
tree | 7e3ac0f562b3f98ca114ce1d27b3a6734b4725cb /docs/configuration/container | |
parent | 96039bd2f44018ae767930e252305bedece57156 (diff) | |
parent | b9ff99942d10c8dac66875fd38a8b28c34d3321f (diff) | |
download | vyos-documentation-579c5cc953c8f5ac2a17218fd8d58b4a53bab7ca.tar.gz vyos-documentation-579c5cc953c8f5ac2a17218fd8d58b4a53bab7ca.zip |
Merge branch 'current' of github.com:vyos/vyos-documentation into current
Diffstat (limited to 'docs/configuration/container')
-rw-r--r-- | docs/configuration/container/index.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/configuration/container/index.rst b/docs/configuration/container/index.rst index 4dacc6f4..a1672aa7 100644 --- a/docs/configuration/container/index.rst +++ b/docs/configuration/container/index.rst @@ -133,6 +133,17 @@ Configuration - **always**: Restart containers when they exit, regardless of status, retrying indefinitely +.. cfgcmd:: set container name <name> cpu-quota <num> + + This specifies the number of CPU resources the container can use. + + Default is 0 for unlimited. + For example, 1.25 limits the container to use up to 1.25 cores + worth of CPU time. + This can be a decimal number with up to three decimal places. + + The command translates to "--cpus=<num>" when the container is created. + .. cfgcmd:: set container name <name> memory <MB> Constrain the memory available to the container. @@ -157,6 +168,17 @@ Configuration setdomainame) - **sys-time**: Permission to set system clock +.. cfgcmd:: set container name <name> sysctl parameter <parameter> value <value> + + Set container sysctl values. + + The subset of possible parameters are: + + - Kernel Parameters: kernel.msgmax, kernel.msgmnb, kernel.msgmni, kernel.sem, + kernel.shmall, kernel.shmmax, kernel.shmmni, kernel.shm_rmid_forced + - Parameters beginning with fs.mqueue.* + - Parameters beginning with net.* (only if user-defined network is used) + .. cfgcmd:: set container name <name> label <label> value <value> Add metadata label for this container. |