I am trying to run a mssql container on windows following this https://hub.docker.com/r/microsoft/mssql-server
I have managed to successfully download the image using docker pull mcr.microsoft.com/mssql/server:2019-latest
But when I try to run the image using the command
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<your_strong_password>" -p 1433:1433 --name sqlserver --hostname sqlserver -d mcr.microsoft.com/mssql/server:2019-latest
I get the following error
8ebb0c1ff1a193c57054a67c5d83185e62be2682bad033455c924739877ade68 docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: invalid rootfs: stat /var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/moby/8ebb0c1ff1a193c57054a67c5d83185e62be2682bad033455c924739877ade68/D:Docker/vfs/dir/a04b98296e4dc498e5b347a08d39caaac1041fdfbdb11e4acc246a4fd4c305c2: no such file or directory: unknown.
I have also tried adding the -v ./data:/var/opt/mssql/data
but with no success.
My docker is installed on D drive and the docker engine settings are following due to another project.
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"data-root": "D:\Docker",
"experimental": false
}
I have tried changing it to only "data-root: D:\Docker"
but same issue persists.
I am using docker desktop with linux containers setting.