DEV Community

Discussion on: Beginners Tutorial: Docker with ASP.NET Core

Collapse
 
lukasztomalczyk profile image
lukasztomalczyk

How to Add to this solution dockerfile linux-sql-server ?

Collapse
 
schwamster profile image
Bastian

here is a quick example: github.com/schwamster/mssql-docker

Hope this is what you were looking for

Collapse
 
schwamster profile image
Bastian

i am not sure i completely understand, but i am guessing you are asking how you would start a mssql server in a container?

in that case you would simply run something like this:

docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -e 'MSSQL_PID=Express' -p 1433:1433 -d microsoft/mssql-server-linux:latest

Check out the docs here: hub.docker.com/r/microsoft/mssql-s...