skip to Main Content

I know that Redis is not supported for Windows (at least newer versions).

My question is can I somehow use official builds of Redis on Windows using a Docker container? since Docker suppose to provide a compatible predictable environment for every platform

2

Answers


  1. In short, you can run this

    docker run --name redis -d -p 6379:6379 redis:6.0

    Your applications will be able to access Redis on localhost:6379

    Check this post, if you want a detailed explanation on installing a persisting redis deployment using Volume mounts. link

    For more info, check the official docs link

    Login or Signup to reply.
  2. You can either use redis via the WSL or use this image built natively for docker Windows.
    There is the latest version officially ported by Microsoft as well as the latest versions ported by the community.

    Example of a docker command :

    docker run --name my-redis -p 6379:6379 -d redis:5.0.14.1-lts-nanoserver-1809
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search