Reliable BSOD when connecting to SQL in Windows containers from SSMS
I'm not sure if this is the right github repo for this issue, but I am able to get a reliable BSOD when connecting to the running SQL container through SSMS.
Error is: DRIVER_IRQL_NOT_LESS_OR_EQUAL in winnat.sys
I am running Windows 10 Creators Update.

+1
+1
This also happens to me when I run SqlPackage against my container on container IP from my host.
Docker version: 17.05.0-ce Windows version: 15063.296 Surface Pro 4
Are we talking about a SQL Server Windows container or a Linux container running on Docker for Windows here?
@twright-msft Windows Host and Windows Container.
+1 (windows container)
We're looking into this...
[@gregpakes, @adamhwang, @ermontgo, @HugoNijhuis]
I tried to repro this issue on multiple machines using the microsoft/mssql-server-windows:latest image, with no success so far. A couple of questions/requests so we can narrow down the investigation:
-
Are you all using the microsoft/mssql-server-windows:latest (CTP2.1) image? Is it possible to see if you get the same issue with the previous microsoft/mssql-server-windows:vnext-ctp2.0 image?
-
Are you all running Windows 10 Creators Update? Is it a VM?
-
Any chance someone can share detailed repro steps (including the docker run command and the SSMS version)?

@perrysk-msft
So my machine no longer exhibits the issue (I rebuilt my docker environment from scratch), but I will try and help.
- I was using the latest image at the time, not vnext.
- I was running Creators Update
- I was mapping 1433 to my host, so I was connecting to localhost in SSMS.
@perrysk-msft Thanks for investigating! Unfortunately I've since uninstalled Docker from the affected machine and am running SQL Server locally so cannot test the vnext image.
- Yes, I was running
microsoft/mssql-server-windows:latest - I was running Windows 10 Creators Update on host, not VM. Exact iso was:
(Creator Update) SW_DVD5_WIN_ENT_10_1703_64BIT_English_MLF_X21-36478.iso - Docker was latest as of 10 days ago when I originally posted. The InstallDocker.exe I used does not contain a version number but revision was
{9D162334-8073-42CC-AB3E-A989BA9CA500}.
Repro steps
- Ran the command
docker run -d -p 1433:1433 -e sa_password=<SA_PASSWORD> -e ACCEPT_EULA=Y microsoft/mssql-server-windowsafter changing pw (from Docker hub) - Connect from SSMS on host to localhost or .
- See BSOD
Alternatively, even without connecting, would eventually get BSOD 5-10 mins after the container was started. Hope this helps
Thanks @gregpakes and @adamhwang. Still no repro on my side, but I'll also try on a couple of different environments.
This is occurring again on my machine. Makes docker unusable...
Current Error:

Getting the same with microsoft/mssql-server-windows-developer:latest, Win10 Creators Edition, same steps as @adamhwang.
Using Docker for Windows, Version 17.03.1-ce-win12 (12058) Channel: stable d1db126
Also getting the same BSOD when connecting via SSMS (17.1) to a docker SQL image (using latest windows mssql-server-windows-developer).. same steps as above
Fresh install of windows(Windows 10 Creator) and docker(12058), only other software VS 2017, Bitdefender and Office. Bash for Windows turned on.
Thanks @corsjune, @flcdrg! We will try to repro this issue and investigate. Do you get the same behavior when using the container IP (from docker inspect) instead of localhost or . in SSMS?
@perrysk-msft: I'm also experiencing this exact issue running Docker (12627) on Windows 10 Creators Update, connecting to localhost with SSMS. Using the container IP seems to help, though, as I have not yet experienced any BSODs when doing that.
Yesterday.. I was experiencing the BSOD using . TO repro, I would first fail auth using Windows Auth two or three times and then try the sa password. If sa auth was successful, BSOD.
I think localhost did the same.
Today the container IP and external HOST IP seems successful. Also, but strangely . and localhost is going through also w/o a BSOD also. Only difference between last night and today is that I installed the June OS Rollups for Creator Edition
@perrysk-msft fresh boot.. tried . , instant BSOD
boot again, tried container IP, success:
tried . again, instant BSOD bad header pool
latest "stable" docker bits and OS bits
it seems that if I use the HOST external IP first and then try . , it is slightly more stable.. no bsod just SSMS hang
EDIT: I take that back.. although it seemed fine when I went to restart, another BSOD PAGE_FAULT_IN_NONPAGED_AREA
While this thread so far has revolved around connecting to the container using SSMS, it is worth mentioning that the BSOD also occurs when connecting to the 'localhost' using ADO.NET in general. I just got the BSOD when an application I'm developing tried to connect to the database via 'localhost'. Again, connecting using IP does not give BSOD.
I'm having the exact same issue. My laptop would BSOD upon connecting with SSMS to localhost. The actual error of the BSOD was different everytime. Looks like pointer into the kernel going wrong...