Docker Community Forums

Share and learn in the Docker community.

SSMS cant connect to SQL 2019

Hello to all
I’m having trouble connecting
through SQL Server Management Studio (SSMS)
on SQL Server 2019,
through sqlcmd I succeed, but from the outside no.

Client:
 Version:           18.09.9
 API version:       1.39
 Go version:        go1.13.4
 Git commit:        1752eb3
 Built:             Sat Nov 16 01:05:26 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.9
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.13.4
  Git commit:       9552f2b
  Built:            Sat Nov 16 01:07:48 2019
  OS/Arch:          linux/amd64
  Experimental:     false


CONTAINER ID        IMAGE                                                  COMMAND                  CREATED             STATUS              PORTS                    NAMES
621fe4849691        mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04   "/opt/mssql/bin/perm…"   About an hour ago   Up 5 seconds        0.0.0.0:1433->1433/tcp   GESTIONALE

How Can i solve?

Ty

Hi

which host do you connect to from SSMS?

HI, the Host is Linux Ubuntu 19.10 x64

sorry, i ment, which hostname do you use to connect to the ssms? localhost:1433 ?

Yes I try localhost,1433 and my ip,1433

I just install docker on Windows, with Windows container and it’s works, using my ip,1433