Re: machinectl and systemd-nspawn - Settting the CPUQuota from command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On Wed, Jul 31, 2024 at 10:43:52AM GMT, Joel GUITTET <jguittet.opensource@xxxxxxxxxxx> wrote:
> I used slice files in /etc/systemd/system/ to set some CPUQuota and MemoryMax options to some systemd-containers. Works fine.
> 
> Is it possible to define these options from machinectl / systemd-nspawn command line directly without using the slice file ?

You can try
	systemd-nspawn --property=foo=bar
That'd apply the limit on directly on the container's unit (not a whole
slice).

Does that help?

Michal

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux