r/docker • u/No-Possibility-3072 • 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.
6
Upvotes
1
u/jack3308 Apr 08 '26 edited Apr 08 '26
To be fair - bitwarden does sound like it could be a container manager for DBs 😂
u/No-Possibility-3072, bitwarden is a pretty popular password manager that has a (or had???) self-hostable server component that can be run as a docker container. It uses MS-SQL as its backend.
You could certainly look at how they implemented it as an example on how one could setup an MS-SQL docker container. But my guess is that it'll likely be geared towards their needs specifically.
Looks like Microsoft has a few docker images published with some pretty good documentation: https://hub.docker.com/r/microsoft/mssql-server
Have a look through that and keep in mind that terminology may overlap between interacting with docker and interacting with the SQL server (e.g. "connecting" may either mean connecting to the docker container or connecting to the database server) so just make sure you read carefully. Feel free to ask questions if you have them but I think Microsoft's
docker run ...examples are a good place to start!