Open a terminal window an run:
docker run -d --name redis \ --restart unless-stopped \ -v ~/data-db/redis:/data \ -p 6379:6379 redis:4
# First create a volume docker volume create --name=redisdata # Run the container docker run -d --restart unless-stopped --name redis -v redisdata:/data -d -p 6379:6379 redis:5
Last updated 5 years ago