nil
nil

Reputation: 559

Can you run Redis on Windows using Docker?

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

Upvotes: 10

Views: 7920

Answers (2)

ValdayYgg
ValdayYgg

Reputation: 31

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

Upvotes: 3

Mahesh Bongani
Mahesh Bongani

Reputation: 730

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

Upvotes: 7

Related Questions