mkdir -p redis/conf
mkdir -p redis/data
cd redis/conf
wget http://download.redis.io/redis-stable/redis.conf
{{uploading-image-351372.png(uploading...)}}
{{uploading-image-697358.png(uploading...)}}
docker run --name redis -p 6379:6379 -v /root/appdata/redis/conf/redis.conf:/etc/redis/redis.conf -v /root/appdata/redis/data:/data -d redis redis-server /etc/redis/redis.conf --appendonly yes --requirepass 123456
原文:https://www.cnblogs.com/shenleg/p/14435489.html