Replication enables data from one MySQL database server (the master) to be copied to one or more MySQL database servers (the slaves). Replication is asynchronous by default; slaves do not need to be connected permanently to receive updates from the master. Depending on the configuration, you can replicate all databases, selected databases, or even selected tables within a database.
Docker is a tool designed to make applications.Docker provides the ability to package and run an application in a loosely isolated environment called a container. In this it is easier to create, deploy, and run the application with the help of containers.