Skip to content

Instantly share code, notes, and snippets.

@dkhorev
Created June 6, 2022 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkhorev/29298fca75a9a9fa3f67221850f932fc to your computer and use it in GitHub Desktop.
Save dkhorev/29298fca75a9a9fa3f67221850f932fc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# first run redis with persistence
docker run -p 6379:6379 --name redis -d redis --save 60 1 --loglevel warning
# stop service
docker stop redis
# start service
docker start redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment