1.下载redis镜像
docker pull redis
2.远行redis
docker run -p 6379:6379 -v ~/PROJECTS/redis/data:/data --name some-redis -d redis redis-server /data/conf/redis.conf
3.进入redis
docker exec -it 容器编号 bash
redis-cli -h localhost -p 6379
SET uwo yanhao
GET uwo
DEL uwo