Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 4.63 KB

File metadata and controls

80 lines (54 loc) · 4.63 KB
title SQL Server on Linux Containers
description A comparison of virtual machines vs containers, and guidance for containerized SQL Server.
author rwestMSFT
ms.author randolphwest
ms.date 04/13/2026
ms.service sql
ms.subservice linux
ms.topic concept-article
ms.custom
linux-related-content

SQL Server on Linux containers

[!INCLUDE sql-linux]

Containers provide a lightweight and portable way to run [!INCLUDE ssnoversion-md] on Linux. Compared to virtual machines (VMs), containers start faster and simplify lifecycle management while still providing isolation for database workloads.

Why use containers

Containers share the host operating system (OS) rather than running a full guest OS, which reduces overhead and enables faster provisioning. On Linux hosts, you can run [!INCLUDE sssql17-md] or later versions as containers. You can run these containers by using Docker or other supported container runtimes, either standalone or managed by an orchestrator.

Containers are well suited for scenarios that require rapid deployment, consistency across environments, and simplified operations:

  • Containers start and scale faster than virtual machines.
  • A single host OS reduces administrative overhead.
  • Identical images produce consistent deployments across development, test, and production.
  • A smaller footprint enables higher density on shared infrastructure.

Common use cases include development and testing, CI/CD pipelines, and cloud-native or scalable architectures.

Get started

To begin working with [!INCLUDE ssnoversion-md] on Linux containers, see the following resources:

Install and configure

Security and authentication

High availability

Orchestration

For production deployments, use an orchestrator such as Kubernetes, Azure Kubernetes Service (AKS), or Red Hat OpenShift to manage containers. Orchestrators handle scheduling, scaling, health monitoring, and recovery.

Microsoft provides guidance and tooling for running [!INCLUDE ssnoversion-md] containers on Kubernetes, including supported container images and deployment examples.

Storage considerations

Databases running in containers need persistent storage that exists outside the container lifecycle. On Kubernetes, you typically use persistent volumes and persistent volume claims (PVCs) to provide this storage.

A typical deployment includes:

  • A persistent volume to store database files.
  • A deployment or StatefulSet that uses the Microsoft [!INCLUDE ssnoversion-md] Linux container image.
  • A service or load balancer that provides stable network access.

With this configuration, the orchestrator can automatically restart or replace containers if a node fails, and your data is preserved.

Related content