1. Install and configure docker and set up image acceleration
2. Search for redis image and pull
3. View the current image of the system
4. Run redis-server container and make persistent configuration
5. Docker starts 3 redis container services, use 6379-6381 3 ports
6, enter the docker container to view the current redis role
7, configure the redis cluster, one master and two slaves
8, the test is successful
Docker builds redis master-slave mode
Guess you like
Origin blog.csdn.net/lq_hello/article/details/107256762
Ranking