[SOLVED] Memory allocation for docker inside VM (ubuntu)

andmattia

New Member
Feb 13, 2024
24
2
3
Hi

I've a VM with ubuntu and docker installed inside. I configure it with:
8 CPU
RAM 4Gb(min)/16Gb(max)

When my container start the available RAM is 4Gb and unbale to start some container.

To fix it I need to set memory in fixed way 16Gb but I can't use a ballon.

I have HyperV experience and in Hyperv I can set min ram, startup memory and max memory, in this way when VM start can have enough RAM to start all container.

Is it possibile to configure in similar way?
 
Some people will point to the balloon driver, but it only works when the host memory starts to fill up. So it is not like the Hyper-V feature at all. For PVE you need to configure enough ram for your containers to work, period, the end.