docker install redis

Scroll Down

Simply record configuration file

docker run \
--name redis -d \
-v /opt/docker/redis/data:/data \
-v /opt/docker/redis/conf:/usr/local/etc/redis \
-p 6379:6379 \
redis redis-server /usr/local/etc/redis/redis.conf \
--appendonly yes