Share via

My SQL server exits after running for a few seconds in docker

LALITHA MARUTHACHALAM 0 Reputation points
2026-02-17T17:21:11.53+00:00

Hi,

I tried running MS SQL server in docker and it exiting withing a few seconds. I am running this on my MAC book. I want to connect Azure data studio to it. Can you please let me know a command that works. I have tried several options and nothing works.

Thanks,

Lalitha.M

SQL Server Database Engine
{count} votes

1 answer

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 7,376 Reputation points
    2026-02-17T19:41:17.7233333+00:00

    Hello Lalitha Maruthachalam,

    This is a very common issue on Macs, probably could be:

    1. Wrong Processor Type: Your Mac (M1/M2/M3) speaks a different language (ARM) than the standard SQL Server (Intel). It tries to start, gets confused, and quits.
    2. Weak Password: If your password isn't "strong enough" (must have Uppercase, Lowercase, Numbers, AND Symbols), SQL Server automatically shuts down to protect itself.

    Use the Azure SQL Edge version. It is made specifically for Macs and works exactly the same way for development.

    I learn it watching this video https://www.youtube.com/watch?v=V-4Gg3yL2TE

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.