[Wolves] Ubuntu 16.04 LXC Unprivileged containers and limits
David Goodwin
david at codepoets.co.uk
Tue Aug 2 16:06:01 UTC 2016
On 02/08/16 16:59, Simon Burke wrote:
> Hi,
>
> I do. I added these to the /etc/default/grub file (in
> GRUB_CMDLINE_LINUX) and updated grub.
>
> Still no joy.
>
>
I ended up reading the lxc source code at times :(
Perhaps your cgroups aren't mounted in the 'right' way?
Are you using systemd ?
Can you apply limits to the cgroup once the container is started ?
(In my case - e.g.
lxc-cgroup -n containerName memory.limit_in_bytes "300M"
or if you're feeling braver just write to the file(s) probably in
/sys/fs/cgroup/lxc/<containerName>/limit_in_bytes
I just have cgroups mounted with this in /etc/fstab :
cgroup /sys/fs/cgroup cgroup defaults 0 0
David.
More information about the Wolves
mailing list