Skip to content

Instantly share code, notes, and snippets.

@agtcooke
Created August 28, 2018 19:19
Show Gist options
  • Save agtcooke/3d6e957733164877c494f77348cf5745 to your computer and use it in GitHub Desktop.
Save agtcooke/3d6e957733164877c494f77348cf5745 to your computer and use it in GitHub Desktop.
sql-in-docker.md

Run SQL Server in docker:

  1. Install docker

  2. Run: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<your sa password>' -p 1433:1433 --name local_sql_server -d microsoft/mssql-server-linux:2017-latest

  3. Where needed, your connection string will be:

`Data Source=(local);Initial Catalog=NotificationService;User Id=SA;Password=<your sa password>;Integrated Security=True;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False;integrated security=false;`

Data will persist as long as you don't delete the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment