2017-10-17 124 views
1

是否可以创建一个Windows用户登录名,作为基于Linux的Docker镜像在Windows PC(无Active Directory)上运行的MSSQL?在MSSQL(linux docker)上为本地Windows用户创建登录

CREATE LOGIN [PC-NAME\LocalUser] FROM WINDOWS 

如果是,Docker镜像需要哪种配置才能做到这一点?目前,我得到了以下错误:

Windows NT user or group 'PC-NAME\LocalUser' not found. Check the name again. 
+0

退房这篇文章中,大多数人使用sqlauth与泊坞窗:HTTPS://blogs.msdn.microsoft.com/containerstuff/2017/01/30/create-a-container-with-active-directory-support/ – TheGameiswar

+0

使用sql用户的登录按预期工作。我们有很多单元测试用于执行测试的本地用户(构建代理)登录。一个选项是编辑所有测试以使用特定的sql用户。 socond选项是我的问题的答案:)(如果可能的话) – WebDucer

回答

1

MS Docs: Configure SQL Server 2017 container images on Docker

Eugene_Resnick Aug 18, 2017 Anyway to connect to the DB without using SA? Either a local account on the Windows host or through a gMSA on the host containers domain? LuisBosquez Aug 23, 2017

@Eugene_Resnick Integrated Authentication is still not supported on SQL Server on Linux. You can create a new login and connect to it like a regular installation of SQL Server. In fact, we recommend at least changing the SA password after it was first provisioned.

+0

谢谢。所以我们将编辑我们的单元测试,以便能够使用docker镜像作为测试数据库实例。 – WebDucer