I have configured docker with db on it
Here is how I download sql
docker pull microsoft/mssql-server-linux:2017-latest
Then I do this command
docker run -e "ACCEPT_EULA=Y" -e 'SA_PASSWORD=$cthulhu1988' -p 1433:1433 --name test -d microsoft/mssql-server-linux:2017-latest
and then I tried to connect to it via this command
docker exec -it test /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '$cthulhu1988'
But I get this error
**Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'SA'..**
UPDATE
I make ipconfig
And tried to do this with my Ipv4 address
docker exec -it test /opt/mssql-tools/bin/sqlcmd -S 10.0.75.1 -U SA -P '$cthulhu1988'
Now I have this errors
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x102. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
I Cheched, tcp\ip enabled
Where can be my mistake?
$for#for example). Now remove the goose chase about password complexity from your question and let's focus on the problem you haven't solved yet.