1.下载redis
docker pull redis
2.创建文件
mkdir -p /mydata/redis/conf
touch /mydata/redis/conf/redis.conf
3.运行docker
docker run -p 6379:6379 --name redis -v /mydata/redis/data:/data \
-v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf --privileged=true \
-d redis redis-server /etc/redis/redis.conf \