mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Update dockerfile
This commit is contained in:
committed by
GitHub
parent
c864803831
commit
f9ec970823
@ -22,9 +22,9 @@ RUN powershell -Command (New-Object System.Net.WebClient).DownloadFile('%sql_exp
|
||||
|
||||
RUN powershell -Command \
|
||||
set-strictmode -version latest ; \
|
||||
stop-service MSSQL`$%sqlinstance% ; \
|
||||
stop-service MSSQL`$SQLEXPRESS ; \
|
||||
set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql12.SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall' -name tcpdynamicports -value '' ; \
|
||||
set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql12.SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall' -name tcpport -value 1433 ; \
|
||||
set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql12.SQLEXPRESS\mssqlserver\' -name LoginMode -value 2 ;
|
||||
|
||||
CMD powershell ./start %sa_password%
|
||||
CMD powershell ./start %sa_password%
|
||||
|
||||
Reference in New Issue
Block a user