I'm running an ubuntu image in docker and i installed redis as a service
Here's how i start redis in the Dockerfile:
CMD redis-server --daemonize yes && /bin/bash
now whenever i make changes to the database and run
redis-cli SAVE or redis-cli BGSAVE
i expect to find a dump.rdb file generated in /var/lib/redis but that doesn't happen
these two lines are from my redis.conf in docker:
dir /var/lib/redis
I don't want to mount my local dump.rdb file to the docker container.
How do i get redis to generate dump.rdb in docker?