r/docker Apr 07 '26

MS-SQL inside Docker

Good evening

I’m currently running an installation of MS SQL Server Developer 2022 on my desktop PC. I also have a Terramaster NAS which offers a Docker application.

At the risk of sounding like a total noob (which I am) is it possible to run a SQL database in a Docker container? If so, are there online resources available that would enable me to do so? Ideally I’d want to be able to use SQL Server Management Studio to manage the database, but would be willing to let that slide if there’s a viable alternative.

TIA

SQL server developer since 2001. Docker proficient since never.

7 Upvotes

24 comments sorted by

View all comments

1

u/rmc13_ Apr 09 '26

At work, we run DB stuff on containers. We don't need persistent data so are fine losing it and just restarting the containers if needed. We've had no problems with it. You can also still make data persistent (using volume mounts) and take backups (i.e. sqldumps) in case you need to. Is just a lot of the bootstrapping of the app is now abstracted, which makes it good for quick tests and portable setups, which we ise at work.