Redis

Running Redis in a docker container

Open a terminal window an run:

docker run -d --name redis \
    --restart unless-stopped \
    -v ~/data-db/redis:/data \
    -p 6379:6379 redis:4

On Windows

# 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