mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

(Apple MAC M2 Air) Container stops within 1 second of running SQL Server with Exited(1) status

Open Abhishek-Singh-Rana opened this issue 2 years ago • 4 comments

I am getting the following error while running the container in my docker:

2023-07-17 23:19:59 SQL Server 2019 will run as non-root by default. 2023-07-17 23:19:59 This container is running as user mssql. 2023-07-17 23:19:59 To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216. 2023-07-17 23:19:59 /opt/mssql/bin/sqlservr: Invalid mapping of address 0x40037f3000 in reserved address space below 0x400000000000. Possible causes: 2023-07-17 23:19:59 1) the process (itself, or via a wrapper) starts-up its own running environment sets the stack size limit to unlimited via syscall setrlimit(2); 2023-07-17 23:19:59 2) the process (itself, or via a wrapper) adjusts its own execution domain and flag the system its legacy personality via syscall personality(2); 2023-07-17 23:19:59 3) sysadmin deliberately sets the system to run on legacy VA layout mode by adjusting a sysctl knob vm.legacy_va_layout. 2023-07-17 23:19:59

image

Am i missing anything?

Abhishek-Singh-Rana avatar Jul 17 '23 18:07 Abhishek-Singh-Rana

+1 - I'm running into the same error on my 2023 M2 Pro Mac Mini.

svoeller99 avatar Jul 22 '23 22:07 svoeller99

This works for me

https://github.com/microsoft/mssql-docker/issues/668#issuecomment-1412206521

Khristophor avatar Jul 24 '23 13:07 Khristophor

have you tried the SQL 22 version and do you still see the issue?

amitkh-msft avatar Aug 14 '23 12:08 amitkh-msft

Make sure to enable container emulation via Rosetta: https://devblogs.microsoft.com/azure-sql/development-with-sql-in-containers-on-macos/

dzsquared avatar Oct 19 '23 23:10 dzsquared