Redis on Docker on Windows, Oh My!

In preparing for my upcoming presentation at SQL Saturday Vancouver, I needed to setup Redis locally in case of poor internet during my presentation. One of the reasons I went with Redis on Docker is that I can stand up multiple Redis databases and create new ones quickly.

  1. First download and install docker for Windows from the stable channel.
  2. Restart your computer.
  3. After your computer restarts you may or may not be presented with a pop up from Docker asking to enable Hyper-V:
    Enable Hyper-V
  4. Click Ok and restart your computer. It may restart more then once while it’s enabling Hyper-V
  5. Open Power Shell and run command:
    docker run -d -p 6379:6379 redis
  6. An easy way to inspect your Redis instances it to use Redis Desktop Manager
  7. Once the Redis Desktop Manager is installed click the Connect to Redis Server Button.
  8. Connect to Redis Server
  9. Which will open the connections settings
    1. Specify a name (I used Redis on Docker)
    2. Enter localhost for the server
    3. Leave the port as 6379
    4. Click Ok

    Redis Connection Settings

  10. Now you will see the name of your connection. This is showing you are not connected.
    Redis Disconnected
  11. Click on the name of your connection. Now it will list all the database in the selected Redis Server instance; by default it’s 16.
    Redis Connected

Leave a Comment

Your email address will not be published. Required fields are marked *