本文出自明月工作室:https://www.freebytes.net/it/docker-start-redis.html
docker run --name redis \
-p 6379:6379 \
-v H:/redis/conf:/usr/local/etc/redis \
-v H:/redis/data:/data \
--name redis -d redis \
redis-server /usr/local/etc/redis/redis.conf
redis.conf可配置密码:
requirepass 123456