拉取redis镜像 docker pull redis:5.0.3 增加配置文件redis-cluster.tmpl 在用户目录下创建文件 ${userpath}/redis-cluster/redis-cluster.tmpl port ${PORT} protected-mode no cluster-enabled yes cluster-config-file nodes.conf cluster-node-timeout 5000 cluster-announce-ip 192.168.XX.XX //宿主机服务器IP cluster-announce-port ${PORT} c