CONTAINER-LIMIT(1)

πŸ“¦
this version Β· 5 versions
, in debian bookworm, ubuntu noble

✨ 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:

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