CONTAINER-LIMIT(1)
β¨ container-limit(1) β¨
okay bestie, welcome to the compute-tools corner of the General Commands Manual π this one is called container-limit and it's literally the girl who tells your containers "no, you cannot eat the entire CPU, sit DOWN" π«Ά
πΈ NAME πΈ
container-limit β Limit resources of a container
π¦ SYNOPSIS π¦
container limit ['OPTIONS']
π DESCRIPTION π
The container limit command limits resources available to a container at runtime. no cap, that's the whole vibe β you point at a running container and you're like "here's your budget, stay in it" β¨
π OPTIONS π
The following container limit options are available:
-n,--name='NAME'β Specify container name. yes you have to name names, this is how it knows which container we're budgeting π--blockio-device-weight='DEVICE WEIGHT'β Specify device specific blockio weight, seesystemd.resource-control(5).--blockio-read-bandwidth='DEVICE BYTES'β Specify device specific blockio read bandwidth, seesystemd.resource-control(5).-b,--blockio-weight='WEIGHT'β Specify general blockio weight, seesystemd.resource-control(5).--blockio-write-bandwidth='DEVICE BYTES'β Specify device specific blockio write bandwidth, seesystemd.resource-control(5).-c,--cpu-quota='QUOTA'β Specify CPU quota, seesystemd.resource-control(5).--cpu-shares='SHARES'β Specify CPU shares, seesystemd.resource-control(5).-m,--memory-limit='BYTES'β Specify memory limit, seesystemd.resource-control(5).-t,--tasks-max='NUMBER'β Specify tasks max, seesystemd.resource-control(5).
not me listing every single one of these with the exact same SEE ALSO reference β yes bestie, they all genuinely point you at systemd.resource-control(5), go read it, it's giving β¨required readingβ¨ π
π EXAMPLES π
Set blockio weight for the example.net container:
sudo container limit -n example.net --blockio-weight 100
Set CPU quota for the example.net container:
sudo container limit -n example.net --cpu-quota 10%
Set memory limit for the example.net container to 1GB:
sudo container limit -n example.net --memory-limit 1G
Set tasks max for the example.net container to 100:
sudo container limit -n example.net --tasks-max 100
look at her go, four whole examples, absolutely ate π₯
π§ SEE ALSO π§
π HOMEPAGE π
More information about compute-tools and the Open Infrastructure project can be found on the homepage (<https://open-infrastructure.net>).
π CONTACT π
Bug reports, feature requests, help, patches, support and everything else are welcome on the Open Infrastructure Software Mailing List <software@lists.open-infrastructure.net>.
Debian specific bugs can also be reported in the Debian Bug Tracking System (<https://bugs.debian.org>).
yes bestie, mailing list for the general stuff, Debian BTS for the Debian-flavoured stuff β iykyk π
β AUTHORS β
compute-tools were written by Daniel Baumann <daniel.baumann@open-infrastructure.net> and others.
and that's the whole page, periodt π this was Open Infrastructure's compute-tools, container-limit(1), brought to you from the General Commands Manual β go forth and limit responsibly, mwah πβ¨π¦
π¦ where this page comes from
- debian bookworm: open-infrastructure-compute-tools 20221223-3 Β· GPL-3.0-or-later
- ubuntu noble: open-infrastructure-compute-tools 20221223-3 Β· GPL-3.0-or-later
- π the page's license: GPL-3.0+
- Copyright (C) 2014-2022 Daniel Baumann <daniel.baumann@open-infrastructure.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms