In last blog I discuss about running sql server inside container while asp.net core web api on host (windows) machine. I can connect SQL server while running asp.net core web api however can not connect using management studio from host machine.
I tried various option like localhost : port number (localhost:1433) or container ip address : port number (XXX.XXX.XXX.XXX:1433) with no success.
After few unsuccessful trial I decided to read docker documentation windows and while reading carefully I noticed that “you can not connect linux container from windows host neither you can ping your linux container”. Here is the reference link https://docs.docker.com/docker-for-windows/networking/
It is better to read basic before starting any new technology !
Happy Programing !!
Leave a comment