一.拉取Image
docker search redis
docker pull redis
docker images
二.拉取Redis配置
cd /usr/local
mkdir redis
cd redis
wget http://download.redis.io/redis-stable/redis.conf
三.启动docker Redis
docker run --name redis -d -p 6379:6379 -v /usr/local/redis/redis.conf:/etc/redis.conf redis redis-server /etc/redis.conf
docker exec -it redis /bin/bash #进入容器
redis-cli #连接redis
查看redis 已经在运行了