Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Run SQL Server Linux container images with Docker

    Run SQL Server Linux container images with Docker

    March 22, 2025

    In this post, you use Docker to pull and run the SQL Server Linux container image and see the demo of connecting from SQL Server Management Studio (SSMS).

    Open your PowerShell with elevated permission and run the following command. It pulls the SQL Server 2022 (16.x) Linux container image from the Microsoft Container Registry.

    docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<password>" -p 1433:1433 --name sql1 --hostname sql1 -d mcr.microsoft.com/mssql/server:2022-latest
    


    Fig 1: Docker run – SQL Server Linux Container
    ParameterDescription
    -e “ACCEPT_EULA=Y”confirm your acceptance of the End-User Licensing Agreement.
    -e “MSSQL_SA_PASSWORD=”Specify your own strong password.
    -p 1433:1433Map a TCP port on the host environment (first value) with a TCP port in the container (second value).
    –name sql1Name of the container
    –hostname sql1Container hostname
    -dRun the container in the background daemon
    mcr.microsoft.com/mssql/server:2022-latestThe SQL Server Linux container image.

    Run the following command, “docker ps” to view your Docker containers.



    Fig 2: Docker ps – View containers

    If the STATUS column shows Up, then SQL Server is running in the Docker container and listening on the port.

    Docker engine,



    Fig 3: Docker Engine

    Connect the SQL Server from SSMS,



    Fig 4: SSMS – Connect SQL Server

    List all the database,



    Fig 5: Database list view

    Test database,



    Fig 6: Test database

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleExplore 2025’s Leading Web Design Trends: The Ultimate Top 25 Guide
    Next Article Spotting Danger: Key Indicators of Weakness in Crypto Wallet Security

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-47893 – VMware GPU Firmware Memory Disclosure

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Tim Leland: URL Shorteners, browser extensions, and more

    Development

    TerminusDM – cross platform terminal download manager

    Linux

    Google Chrome Beta Tests New DBSC Protection Against Cookie-Stealing Attacks

    Development

    Unlocking Success Through Collaboration in Design

    Development

    Highlights

    Artificial Intelligence

    MIT ARCLab announces winners of inaugural Prize for AI Innovation in Space

    July 11, 2024

    Satellite density in Earth’s orbit has increased exponentially in recent years, with lower costs of…

    CVE-2025-35965 – Mattermost Denial-of-Service DoS Vulnerability

    April 24, 2025

    New CSS that can actually be used in 2024

    November 4, 2024

    Create a custom JavaScript sparkle cursor

    April 17, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.