LAMP stack on docker

Hello!
I’m a newbie to Docker. I already run a web hosting business but decided to turn it into a cloud computing business so I can scale horizontally. Can I let my customers each create a docker instance to host their mariadb server on? And will restarting their docker instance wipe out any data on this mariadb instance?
Additionally, how many docker containers can I run on a 2 core 8 GB RAM system?

I’d appreciate any help, thanks! :slight_smile: