[英]Can not connect to instance of SQL Server that is running in Docker container
I've downloaded and ran this Docker image mcr.microsoft.com/mssql/server
: 我已经下载并运行了这个Docker镜像
mcr.microsoft.com/mssql/server
:
docker run -d -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Password!1" -p 1433:1433 --name sqlserver-test -d mcr.microsoft.com/mssql/server
up this point everything is OK. 至此一切都还可以。
Then I go to the SQL Server Management Studio and try to connect to localhost
with user sa
, but something is wrong because SSMS throws an exception that says something about network error. 然后,我进入SQL Server Management Studio,尝试使用用户
sa
连接到localhost
,但是出了点问题,因为SSMS抛出了一个异常,该异常说明了网络错误。
Any ideas? 有任何想法吗?
尝试连接到localhost, 1433
另外,请确认您没有在尝试使用端口1433的计算机上真正安装SQL Server。您可能需要映射端口1434-> 1433,然后使用localhost, 1434
进行连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.