Clarification needed on memory requirements for Docker install

Sorry but that still confuses me.

My understanding is that when one creates a VM one sets a hard RAM limit like 2 GB or 4 GB. While my setting up of VMs is decades old I don’t ever recall the VM setup asking about how to use the RAM.

Then once the OS was installed and running, it could be configured to slice out part of the RAM as a swap drive.


Walking this through.

We ask for 4 GB or RAM. We don’t ask how it is to be configured. Using web console access we create the virtual machine ourselves and along the way we will be asked to split off part of the 4 GB into a 2 GB swap drive and the leave the other 2 GB as normal memory.


So as not to run down a parade of options if the above is correct we will ask for 4 GB and go, if not then we can pick this up based on the reply.

Did I get it correct? If not then please correct me.