Docker Community Forums

Share and learn in the Docker community.

SQL container exits immediatly when run with persistent storage


(Zierde01) #1

I’m running Docker on Windows 10, running the following command to run a SQL container works just fine:

docker run -e “ACCEPT_EULA=Y”-e "SA_PASSWORD=Password123"
-p 1433:1433 --name sql1 `
-d mcr.microsoft.com/mssql/server:vNext-CTP2.0-ubuntu

but if I try to map in persistent storage using the following, it returns an Exited(1) status after around 5 seconds:
docker run -e “ACCEPT_EULA=Y”-e "SA_PASSWORD=8GjzJfdYNlXl"
-p 1433:1433 --name sql1 -v C:\DockerStorage:/var/opt/mssql
-d mcr.microsoft.com/mssql/server:vNext-CTP2.0-ubuntu

So exact same command, I just added in a -v and the location. I see some of the files copied in to the C:\DockerStorage location, but not all. I’ve tried running it with the -it and just -t option, but that hasn’t helped.

If I look at the logs I see the following:
This program has encountered a fatal error and cannot continue running at Fri Oct 26 01:52:27 2018
The following diagnostic information is available:

   Reason: 0x00000006
   Status: 0x40000015
  Message: Kernel bug check
  Address: 0x6a4e1200

Parameters: 0x10861f690
Stacktrace: 000000006a5ae47f 000000006a4e125b 000000006a4cff75
000000006a4ddd9b 000000006a5ac7c6 000000006a5ab28d
000000006a5e0fb2 000000006a721000 000000006a733000
000000006a73b000 00007f934f6384e0
Process: 11 - sqlservr
Thread: 15 (application thread 0x4)
Instance Id: 9eea6fbd-2dcf-40d2-ac9b-464ede2f3cf6
Crash Id: 3a66b052-922d-41c8-a90a-1370da9675bb
Build stamp: b327e62f232ab387d14856d756e004bceff6b4975d25a72b67fa8edce1301bc2

Ubuntu 16.04.5 LTS
Capturing core dump and information…
dmesg: read kernel buffer failed: Operation not permitted
No journal files were found.
No journal files were found.
Attempting to capture a dump with paldumper
WARNING: Capture attempt failure detected
Attempting to capture a filtered dump with paldumper
WARNING: Attempt to capture dump failed. Reference /var/opt/mssql/log/core.sqlservr.11.temp/log/paldumper-debug.log for details
Attempting to capture a dump with gdb
WARNING: Unable to capture crash dump with GDB. You may need to
allow ptrace debugging, enable the CAP_SYS_PTRACE capability, or
run as root.