Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

270
Vistas
Can I connect to remote DB server from inside docker container?

My app is running against a mssql server 2012 or above,

I tried to set up 2 containers - 1 for my app and one to be a DB server.

But I couldn't use the DB container due to mssql server version windows image is not supported by my app.

So I'm want to connect to a remote DB server that I have which is a different server than the Docker host.

How do I get the container to ping the remote DB server?

From the container-

C:\Installation>ping  my0134.company.net
Ping request could not find host my0134.company.net. Please check the name and try again.

** NOTE - I am using Docker on windows

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Maybe you could try adding <IP of my0134.company.net> my0134.company.net to the etc/hosts file. This way the url can be resolved to a IP address. You can also just use

docker run --add-host 'my0134.company.net':<IP of my0134.company.net> <image>

to spin up your container.

about 4 years ago · Santiago Trujillo Denunciar

0

If IPV4 forwarding is enabled then container can connect to DB Server.There is no issue with that.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda