0

I have got a SQL Server docker instance up and running.

I am able to connect to my local DB and create tables as well.

How do I connect to a database instance (VM) outside of my local setup using Docker?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • Where is the database running: on the host itself or another system? If it's another system, you shouldn't need to do anything special and your existing configuration should work; if it's the host, [From inside of a Docker container, how do I connect to the \[host\] machine](https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach) has the standard recipe. – David Maze Dec 31 '19 at 15:02
  • SQL DB is hosted on another server , I am trying to connect to the server instance from local Docker container – mahesh avadhany Jan 01 '20 at 05:45
  • What specific problem are you having? Can you edit the question to include a [mcve] demonstrating it? – David Maze Jan 01 '20 at 10:35

0 Answers0