docker 安装 redis 1、下载镜像 $ docker pull redis 2、官网下载redis.conf配置文件 $ curl http://download.redis.io/redis-stable/redis.conf > redis.conf 2、创建容器 $ docker run --name redis -p 6379:6379 -v /docker/redis/:/etc/redis/ -itd redis /etc/redis/redis.conf --appendonly yes