[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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!