Last active
May 10, 2021 20:31
-
-
Save codehaks/5c9bb3610bcddc3dc6cd01f909493ee9 to your computer and use it in GitHub Desktop.
SQL Server on docker remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -m=4g -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=1234@Abcd" -p 1433:1433 --name sql2 -h sql2 -d mcr.microsoft.com/mssql/server:2019-latest | |
docker exec -it sql2 "bash" | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "1234@Abcd" | |
sqlcmd -S 127.0.0.1,1434 -U SA -P "1234@Abcd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment