Skip to content

Instantly share code, notes, and snippets.

@bagus2x
Last active December 16, 2020 05:01
Show Gist options
  • Save bagus2x/e03e4e67d3f7a2211e3f4ea3ae996ede to your computer and use it in GitHub Desktop.
Save bagus2x/e03e4e67d3f7a2211e3f4ea3ae996ede to your computer and use it in GitHub Desktop.
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=[pass]' -p 1433:1433 -d mcr.microsoft.com/mssql/server
docker exec -it [cont_name/id] bash
# Inside container
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P [pass]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment