Redis natively runs on Linux flavors (and lately on ARM). Many developers, however, want the same Redis awesomeness on Windows, as well. Microsoft sponsored a project to port Redis onto Windows, but the project was recently discontinued according to Microsoft. With this option gone, what are your options now for running Redis on Windows?

Well, you've got a few.

Run Redis on the Windows Ubuntu Subsystem

Windows 10 comes with an Ubuntu subsystem that can run Redis on your Windows host. Once you have enabled developer mode, you can run Bash on Windows 10. Launch bash and do sudo apt-get install redis-serverfollowed by redis-server on the command prompt. You will see Redis listening on port 6379. It is important to note that the Ubuntu subsystem is a developer mode capability. This subsystem is not built for running critical applications.

Run Redis on Docker for Windows

Docker on Windows can run Linux-based containers. Simply install Docker and change your container type to Linux on Windows 10. Following the PowerShell line will switch the container type & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon. Once you have Linux containers enabled, you can simply do docker run -d -p 6379:6379 redis and you are good to go.

With Docker, you have more options. You can also get a distributed deployment of Redis using Redis Enterprise container on Windows.

Redis Enterprise is simple to set up and it is compatible with existing Redis applications. Simply change your connection string and you are running your Redis app.