Mac OS has emulation for non-ARM docker images with Rosetta 2
This is particularly useful for MSSQL on MacOS,
as I had initially reverted to using Azure SQL Edge (arm supported).
There is a performance hit with Rosetta 2 on Mac, but I think it's not too much.
Top tip, for seeding the DB with actual test data,
add the copy within the Dockerfile allowing the user
to specify file location manually so the backup or restore file not stored in git.
The easiest restore process is fire up the container, and run a restore from
Azure Data Studio or SQL Server Management Studio.
RESTORE DATABASE [YourDatabaseName] FROM DISK = '/var/opt/mssql/backup/file.bak'
WITH MOVE 'YourDataFile' TO '/var/opt/mssql/data/YourDataFile.mdf',
MOVE 'YourLogFile' TO '/var/opt/mssql/data/YourLogFile.ldf';
If you need to determine the name of DataFile and LogFile, use the following: