https://redis.io/download 下载页面有文档告诉部署方式

 

FROM redis
COPY redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]

docker run -p 6390:6379  -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf  -v $PWD/redis_data:/data –name redis -d redis:3.2 redis-server –appendonly yes

 

 

 

发表评论

邮箱地址不会被公开。 必填项已用*标注