The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Official images for Microsoft SQL Server on Red Hat containers. Use the following command to pull the SQL Server on Red Hat container. You can replace docker with podman in the below commands and they should work as is.
SQL Server 2025 is now available for public preview. This is only supported for development as this is public preview. To get started with SQL Server 2025 public preview container images, please use the following command:
podman pull mcr.microsoft.com/mssql/rhel/server:2025-latest
To get started with SQL Server 2022 container images, please use following command:
podman pull mcr.microsoft.com/mssql/rhel/server:2022-latest
To get started with SQL Server 2019 container images, please use the followin command:
podman pull mcr.microsoft.com/mssql/rhel/server:2019-latest
*RHEL7 Container images are based on RHEL7 and RHEL8 Container images are based on Red Hat Universal Based Image 8 (UBI8)
Start a mssql/rhel/server instance 2025 Preview instance
podman run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/rhel/server:2025-latest
podman run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/rhel/server:2022-latest
You can connect to the SQL Server using the sqlcmd tool inside of the container by using the following command on the host:
podman exec -it <container_id|container_name> /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P <your_password>
You can also use the tools in an entrypoint.sh script to do things like create databases or logins, attach databases, import data, or other setup tasks. See this example of using an entrypoint.sh and setup.sql script to create a database.
You can connect to the SQL Server instance in the container from outside the container by using various command line and GUI tools on the host or remote computers. See the Connect and Query topic in the SQL Server on Linux documentation.
1) Evaluation (free, no production use rights, 180-day limit)
2) Enterprise Developer (free, no production use rights)
3) Standard Developer (free, no production use rights)
4) Express (free)
5) Web (PAID)
6) Standard (PAID)
7) Enterprise (PAID) - CPU core utilization restricted to 20 physical/40 hyperthreaded
8) Enterprise Core (PAID) - CPU core utilization up to Operating System Maximum
9) I bought a license through a retail sales channel and have a product key to enter.
10) Standard (Billed through Azure) - Use pay-as-you-go billing through Azure.
11) Enterprise Core (Billed through Azure) - Use pay-as-you-go billing through Azure.
For a complete list of environment variables that can be used, refer to the documentation here.
By passing the value "Y" to the environment variable "ACCEPT_EULA", you are expressing that you have a valid and existing license for the edition and version of SQL Server that you intend to use. You also agree that your use of SQL Server software running in a Docker container image will be governed by the terms of your SQL Server license.
To specify the edition, use the MSSQL_PID environment variable. Details can be found in the "Environment Variables" section below.
SQL Server Developer edition lets developers build any kind of application on top of SQL Server. It includes all the functionality of Enterprise edition, but is licensed for use as a development and test system, not as a production server. SQL Server Developer Edition cannot be used in a production environment. The SQL Server 2017 Developer Edition license terms are located here.
View other issues on the mssql-docker GitHub Project and Known Issues for SQL Server on Linux - SQL Server | Microsoft Learn.
Microsoft SQL Server on Linux for Docker Engine.
Learn more about the latest release of SQL Server on Linux here.
The following information was extracted from the containerfile and other sources.
Summary | Microsoft SQL Server |
Description | Microsoft SQL Server |
Provider | Microsoft Corp. |
Maintainer | Red Hat, Inc. |
The following information was extracted from the containerfile and other sources.
Repository name | mcr.microsoft.com/mssql/rhel9/server |
Image version | 16.0.4075.1 |
Architecture | amd64 |
Using Podman
Use the following command(s) from a system with podman installed and running.
$ podman pull mcr.microsoft.com/mssql/rhel/server:2025-latest
Using Docker
Use the following command(s) from a system with docker service installed and running.
$ docker pull mcr.microsoft.com/mssql/rhel/server:2025-latest
Quick Start commands to start the application
podman run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/rhel/server:2025-latest
podman run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/rhel/server:2022-latest
docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/rhel/server:2019-latest
Learn more on how to use SQL Server Containers