4 ms·
Ask HN: Are containers really more light weight than virtual machines?
I was talking to an expert on containers and asked them "what is the real benefit of containers over VMs" and he said confidently "containers are more light weight than VMs".
But I wonder is that true?
Is "weight" the core value of containers over VMs? And are containers more light weight anyway? My experience with VMs is that small ones are only 25MB or so - seems pretty light weight to me.
- db48x 9y ago"Weight" in this context refers to execution and memory overhead, not file size.
- bradknowles 9y agoDepends on how they are built. If you build a container with everything including the kitchen sync, then that will be pretty heavy. If you really strip down your VM, you can make it very light. But, by default, your average container (properly built) will probably be lighter in weight than your average VM.