I just download Microsoft SQL for working with it and also with Docker but when I try to write the command ‘sqlcmd’ an error appears

  docker, sql, sql-server, sqlcmd

I’m new to SQL databases and to Docker containers. I’m trying to follow up a simple tutorial and I have started by downloading Docker and the MSSQL database (and its command tools). After it, I have tried to run the command sqlcmd to check if everything was fine until now and this error appears in the terminal:

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 0x2AF9.
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..
Victors-MacBook-Pro:~ vict0rsan$

Do you know what can be causing this? I appreciate your help, thanks in advance.

Source: Docker Questions

LEAVE A COMMENT