Answers for "how to run docker image with redis"

5

docker run redis

docker run -d -p 6379:6379 --name redis redis;
Posted by: Guest on December-13-2021
1

docker redis image

# start a redis instance
$ docker run --name some-redis -d redis

# start with persistent storage
$ docker run --name some-redis -d redis redis-server --save 60 1 --loglevel warning

# Additionally, If you want to use your own redis.conf ...
$ docker run -v /myredis/conf:/usr/local/etc/redis --name myredis redis redis-server /usr/local/etc/redis/redis.conf
Posted by: Guest on April-22-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language