JerryChenn07 / redis-from-docker

use docker install redis5.*

Repository from Github https://github.comJerryChenn07/redis-from-dockerRepository from Github https://github.comJerryChenn07/redis-from-docker

打包命令

docker build --rm -t cjr-redis:6.2.7 -f Dockerfile .
docker tag cjr-redis:6.2.7 cjr0707/cjr-redis:6.2.7
docker push cjr0707/cjr-redis:6.2.7

运行命令

docker run -d --name cjr-redis \
    -v ~/db-data/redis:/data \
    -p 6379:6379 cjr-redis:6.2.7
# 或者加上restart
docker run -d --name cjr-redis \
    --restart always \
    -v ~/db-data/redis/:/data \
    -p 6379:6379 cjr0707/cjr-redis:6.2.7

容器中

配置文件在/etc/redis/redis.conf

rdb在/data

About

use docker install redis5.*

License:MIT License


Languages

Language:Dockerfile 100.0%