locked
cant reach SQL Server from inside container in docker swarm mode RRS feed

  • Question

  • Hi,

    we have a couple of containers that we are working with and have been successful at connecting to and outside SQL server if using docker daemon itself (not in swarm mode)   (eg,   docker exec -it containerid cmd.exe)

    These same containers brought up in a 2 node swarm with an overlay network, cant reach the same SQL box.

    when I ping from inside the container it will see the right IP so the dns resolution works but no connectivity.

    I cant even ping the other node in the swarm.

    when I exit the container I am able to reach the  SQL Server

    What am I missing?  


    • Edited by LanceLyons Tuesday, May 12, 2020 10:04 PM
    Tuesday, May 12, 2020 10:00 PM

All replies

  • I was able to run the container on the same machine without swarm mode, just straight docker run on a port and I can get to the outside sql server and ping it.

    what in swarm mode is causing the outside connectivity to not work?  Any suggestions?

    Thursday, May 14, 2020 3:46 PM