In order to omit the errors while manual installation, you can choose already pre-configured WordPress cluster based on Docker containers that includes replicated databases and scalable servers.
This package can be installed automatically and is production-ready (we use such configuration for our site and blog).
Here is the link to the details and step-by-step instruction.