microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources
MIT License
1.73k stars 756 forks source link

Docker for Windows mssql-server-linux:latest fails to run due to memory limit #293

Open wsmelton opened 6 years ago

wsmelton commented 6 years ago

I may be doing this wrong...

Docker: 18.04.0-ce-win62 (17151) image: microsoft/mssql-server-linux:latest

I'm just trying to run the following:

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=supersecret" -p 1417:1433 --name sql17 --platform linux -d microsoft/mssql-server-linux:latest

I can see the container in VS Code created and started, but then immediately stops. I check the logs:

docker logs sql17 --tail 50 -f
sqlservr: This program requires a machine with at least 2000 megabytes of memory.

So I saw mention in another issue about -e "MSSQL_MEMORY_LIMIT_MB=3072" so I tried that but still gets the same error.

Am I doing something wrong?

Paula2001 commented 9 months ago

@totollygeek

there is a workaround here: https://github.com/justin2004/mssql_server_tiny

it works in linux distros. maybe it will work in WSL?

outdated but do we have any other solution :)