According to this link, persistence of redis instances can be prevented by setting --save ''
. However when I try to use that argument in my docker-compose.yml the redis instance still loads a database from disk and persists all data:
version: '3'
services:
redis:
image: "redis:alpine"
command: ["redis-server", "--save"] # disable persistence
ports:
- "7777:6379"
I also tried command: ["redis-server", "--save", ""]
but the problem preserves.
How can I enforce non-persistence (empty redis on every restart)?
flushall
. – Ruzich