OK
docker run -d --privileged=true --restart=always -p 6379:6379 -v /usr/local/docker/redis/6379.conf:/etc/redis/redis.conf -v /usr/local/docker/redis/data6379:/data --name redis6379 redis:7.0.5 redis-server /etc/redis/redis.conf
docker run -d --privileged=true --restart=always -p 6380:6380 -v /usr/local/docker/redis/6380.conf:/etc/redis/redis.conf -v /usr/local/docker/redis/data6380:/data --name redis6380 redis:7.0.5 redis-server /etc/redis/redis.conf
docker run -d --privileged=true --restart=always -p 6381:6381 -v /usr/local/docker/redis/6381.conf:/etc/redis/redis.conf -v /usr/local/docker/redis/data6381:/data --name redis6381 redis:7.0.5 redis-server /etc/redis/redis.conf
docker run -d --privileged=true --restart=always -p 16379:16379 -v /usr/local/docker/redis/16379.conf:/etc/redis/sentinel.conf --name sentinel_16379 redis:7.0.5 redis-sentinel /etc/redis/sentinel.conf
docker run -d --privileged=true --restart=always -p 16380:16380 -v /usr/local/docker/redis/16380.conf:/etc/redis/sentinel.conf --name sentinel_16380 redis:7.0.5 redis-sentinel /etc/redis/sentinel.conf
docker run -d --privileged=true --restart=always -p 16381:16381 -v /usr/local/docker/redis/16381.conf:/etc/redis/sentinel.conf --name sentinel_16381 redis:7.0.5 redis-sentinel /etc/redis/sentinel.conf
参考:
https://blog.51cto.com/u_12855/6934698?articleABtest=0
https://blog.51cto.com/u_39037/6936859?articleABtest=0
https://blog.51cto.com/u_16099251/7107743?articleABtest=0
https://www.cnblogs.com/all-smile/p/16810523.html
https://blog.51cto.com/u_12855/6934698
标签:etc,部署,redis,--,conf,sentinel,docker From: https://www.cnblogs.com/daofree/p/17847801.html