Saturday, November 24, 2018

Redis on Docker for Windows


Go here for the full instructions: https://hub.docker.com/_/redis/.
  1. Install Docker forWindow.
  2. Download and start the image: docker run --name localredis -d redis
  3. Get the IP address: when the docker starts on Windows, it will generate its own IP.  After docker launches, and the whale logo ASCII art shows up, the Docker IP address will be displayed (in this case 192.168.99.100).

  4. The standard port (6379) won't be exposed to other apps so you have to figure out which port to use. So run docker ps. You will get a listing of the running containers with the ports. Notice that my redis instance has its standard port exposed on 32769.

  5. Use the address and port you just discovered when configuring your client.

No comments: