Skip to the content.

SQL Server Lab

Microsoft SQL Server is available to run in Docker containers on Linux and Windows. This lab focuses on Windows and shows you how to use Docker to modernize your database delivery — bringing modern practices like CI/CD into database management.

The SQL Server Express image — microsoft/mssql-server-windows-express — lets you run a SQL Server database in a Docker container on Windows, without having SQL Server installed. All you need is Docker.

In this lab we’ll build a Docker image which packages up a whole database schema on top of the SQL Server image, so when you run the container you have a fully-deployed database ready to use from your applications, or from SQL Server Management Studio.

What You Will Learn

You’ll learn how to:

Prerequisites

You’ll need Docker running on Windows. You can install Docker for Windows on Windows 10, or follow the Windows Container Lab Setup to install Docker on Windows locally, on AWS and Azure.

You should be familiar with the key Docker concepts, and with Docker volumes:

Optional

You’ll be using SQL Server Data Tools (“SSDT”) to build the database schema into a deployable package. An understanding of SSDT and Dacpacs will be useful, but is not required:

The build process using Docker does not use Visual Studio, but if you want to view or edit the SQL Database project yourself, you’ll need Visual Studio 2017. The free Visual Studio Community Edition comes with SQL Server Data Tools.

The Lab