I am using the mcr.microsoft.com/mssql/server:2019-latest container and want to mount its data directory so that data does not get lost if the server goes down.
Where inside is the data directory located? The documentation does not mention this at all.
The files, for SQL Server on Linux, are by default located in
/var/opt/mssql
. Unsurprising the Data files are in thedata
directory, and the log files in thelog
directory.This is also in the documentation Change the default data or log directory location: