Hi guys,
I see a strange behaviour when running Docker on LXC.
We are setting the following additional config options to be able to start Docker containers inside of LXC containers:
When checking the memory or cpu from inside the Docker container on the LXC container, we are always seeing the resources of the host, not the ones that we assigned to the LXC container. Checking the config documentation for the options we've set, I am not able to see which of the options could cause that: https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html
The LXC container itself shows the correct resources when checking /proc/cpuinfo or /proc/meminfo.
Running "htop" on the LXC container shows some strange values as well though. On a container that has 4 GB memory assigned to it and no swap, it shows a usage of "8 GB of 4 GB in use" directly after starting the container.
Any ideas what might cause this behaviour and how to fix it?
Thank you!
I see a strange behaviour when running Docker on LXC.
We are setting the following additional config options to be able to start Docker containers inside of LXC containers:
Code:
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.apparmor.profile: unconfined
lxc.cap.drop:
When checking the memory or cpu from inside the Docker container on the LXC container, we are always seeing the resources of the host, not the ones that we assigned to the LXC container. Checking the config documentation for the options we've set, I am not able to see which of the options could cause that: https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html
The LXC container itself shows the correct resources when checking /proc/cpuinfo or /proc/meminfo.
Running "htop" on the LXC container shows some strange values as well though. On a container that has 4 GB memory assigned to it and no swap, it shows a usage of "8 GB of 4 GB in use" directly after starting the container.
Any ideas what might cause this behaviour and how to fix it?
Thank you!