Sign inSign up

teeravitdev/ms-sqlserver-2019

By teeravitdev

•Updated 9 months ago

Lightweight Microsoft SQL Server 2019 container for fast local database setup.

Image
Developer tools
0

67

teeravitdev/ms-sqlserver-2019 repository overview

⁠Microsoft SQL Server 2019 Docker Image

A lightweight, pre-configured Microsoft SQL Server 2019 container image designed for development, testing, and CI/CD environments.


⁠🚀 Quick Start

Run a standalone container instance using docker run:

docker run -d \
  --name mssql2019 \
  -p 1433:1433 \
  -e "ACCEPT_EULA=Y" \
  -e "MSSQL_SA_PASSWORD=YourStrong@Password123" \
  -v mssql_data:/var/opt/mssql \
  --restart unless-stopped \
  teeravitdev/ms-sqlserver-2019:2019-latest

⁠🐳 Docker Compose

For multi-container applications or local persistence, define your service in docker-compose.yml:

version: '3.8'

services:
  mssql:
    image: teeravitdev/ms-sqlserver-2019:2019-latest
    container_name: mssql2019
    restart: unless-stopped
    ports:
      - "1433:1433"
    environment:
      - ACCEPT_EULA=Y
      - MSSQL_SA_PASSWORD=YourStrong@Password123
    volumes:
      - mssql_data:/var/opt/mssql

volumes:
  mssql_data:

Start the container in the background:

docker compose up -d

⁠⚙️ Environment Variables

VariableRequiredDescriptionDefault
ACCEPT_EULAYesConfirms your acceptance of the End-User Licensing Agreement. Set to Y.—
MSSQL_SA_PASSWORDYesSets the system administrator (sa) password.—
MSSQL_PIDOptionalProduct edition to run (e.g., Developer, Express, Standard).Developer

⁠🔌 Connection Details

Connect using database management tools like SSMS (SQL Server Management Studio), Azure Data Studio, or DBeaver:

  • Server / Host: localhost,1433 (or 127.0.0.1,1433)
  • Authentication: SQL Server Authentication
  • User Name: sa
  • Password: <MSSQL_SA_PASSWORD>

⁠🔒 Security Best Practices

  • Password Policy: Ensure MSSQL_SA_PASSWORD contains at least 8 characters with upper/lowercase letters, digits, and special symbols.
  • Data Persistence: Always mount a volume to /var/opt/mssql so your databases and log files persist across container restarts or removals.
  • Port Security: Do not expose port 1433 directly to public networks in production environments without firewall or VPN protection.

Tag summary

Content type

Image

Digest

sha256:e7ef04aca…

Size

505.1 MB

Last updated

9 months ago

docker pull teeravitdev/ms-sqlserver-2019:2019-latest