K
K
kodnik2016-07-26 11:54:33
Redis
kodnik, 2016-07-26 11:54:33

How to run Redis in Docker with dump stored locally?

I start redis with the following command line:

docker run --restart=always -v /root/redis:/var/lib/redis --name redis -d -p 6379:6379 redis:latest

How to correctly specify that the dump is stored not in the container, but locally on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2016-07-26
@kodnik

Add one more parameter where the dump will be stored
-v /root/redis-dump:/path/to/redis/dump

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question