0

how to connect my .net app which in running in docker to my local redis.

This question is different from "From inside of a Docker container, how do I connect to the localhost of the machine?"

I created a .net core application that is using my local Redis for fetching value. My application is running perfectly locally and I want to test it in docker. I created a docker image of the application and it is running perfectly. it's just not able to connect with Redis. I also create a docker image for Redis but was not able to configure it with my application. Can anyone provide steps for configuration?

I have created docker images for both redis and .net applications and want to connect them

SOLUTION which works for me: Run your redis service on your Ip addredd so it will be assessable to docker container of your service

Yoona
  • 43
  • 5

0 Answers0