Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #docker #redis #image
ADD COMMENT
Topic
Name
9+4 =