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 problem preserves.
How can I enforce non-persistence (empty redis on every restart)?
For me work
command: redis-server --save "" --appendonly no
image: redis:alpine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With