docker pull redis
docker run -di --name=myredis -p 6379:6379 redis bind 0.0.0.0 daemonize NO protected-mode no requirepass 123456 -docker run -p 6379:6379 --name redis_6379 -v /home/test/redis/conf/redis.conf:/etc/redis/redis.conf -v /home/test/redis/data:/data -d redis:alpine3.11 redis-server /etc/redis/redis.conf --appendonly yes
原文:https://www.cnblogs.com/xiongying4/p/12109720.html