I want to clear up some ambiguity in my head. I am running a baremetal server with CentOS7 on a local business network behind NAT. Because the main software on CentOS7 requires PHP 5.4.16 and cannot be upgraded I have to work around what I want to achieve which is to install multiple softwares on either a Virtual Machine(VM) or Docker Container/Image/Repository with their own ip address and dns for their domain. Challenge is I am not sure which one to work with. Let's say this scenario will have an ∞ amount of users, so my hardware will be the bottleneck.
To my understanding a VM is like its own "entity" mutually exclusive from the CentOS7 OS I am currently running on, but still running off the hardware of the CentOS7 server.
I can install multiple softwares on this VM and it will auto boot up upon CentOS7 restart saving ip and dns configurations.
Now a Docker container is stateless, meaning if I reboot my server the Container/Image/Repository will lose all software installs and ip address / dns configuration. However, this doesn't sound accurate. I feel like I can achieve the same result with the VM or Docker