-
Notifications
You must be signed in to change notification settings - Fork 6
Quick Start
Andrew Pruski edited this page Jul 22, 2020
·
11 revisions
This guide will get you up and running with SQL Server in a Docker container in a couple of minutes. For a breakdown of what each line of code does check out the Quick Start Explained page.
To get a container up and running quickly, you can run: -
docker container run -d -p 1433:1433 `
--env ACCEPT_EULA=Y `
--env MSSQL_SA_PASSWORD=Testing1122 `
--name sqlcontainer1 `
mcr.microsoft.com/mssql/server:2019-latest

Execute that, the image will be pulled down for you. You can check this by running: -
docker image ls

And you can then confirm that your container is running: -
docker container ls -a

If your container is up and running you will be able to connect to it in SSMS or ADS via servername localhost and password Testing1122

And that's a real quick start into SQL Server running in a Docker container. Check out the rest of the wiki for more information!