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:
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.
I am having the same issue but here I am using Kubernetes instead . And attached the tool’s versions fyi.
here is the error I am getting :
This program has encountered a fatal error and cannot continue running at Tue Mar 26 19:31:35 2019
The following diagnostic information is available:
Ubuntu 16.04.6 LTS
Capturing core dump and information to /var/opt/mssql/log…
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
Captured a dump with paldumper
I solved the problem by restricting the system resources in the Kubernetes deployment file like below
resources:
requests:
memory: “512Mi”
cpu: “500m”
limits:
memory: “1024Mi”
cpu: “1000m”
Fixed this by using /var/opt/mssql/data as mount path instead of /var/opt/mssql/
"Host volume mapping for Docker on Windows does not currently support mapping the complete /var/opt/mssql directory. However, you can map a subdirectory, such as /var/opt/mssql/data to your host machine.