none
Error attempting to use persisted storage with a Windows docker image RRS feed

  • Question

  • I appreciate any thoughts/feedback here.  I'm trying to learn here...  I was able to get this container up and running without persisted storage.  Now I would like to do it with persisted storage and I'm not having much luck.  I've read several docs and blogs, but I guess I'm missing something.  Any ideas are greatly appreciated.  Thank you!

    C:\Users\Kimmi>docker volume create --name SQLInstance2
    sqlinstance2

    C:\Users\Kimmi>docker volume ls
    DRIVER              VOLUME NAME
    local               sqlinstance2


    C:\Users\Kimmi>docker run -d -p 1401:1433 -e sa_password=Password#12 -e ACCEPT_EULA=Y microsoft/mssql-server-windows-developer -v c:\sqlinstance2:c:\ProgramData\Docker\volumes\sqlinstance2
    26042801b9e174f849186900114ab766969a0ef33a2290e3c0ca46312a9ad60a
    docker: Error response from daemon: container 26042801b9e174f849186900114ab766969a0ef33a2290e3c0ca46312a9ad60a encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)
    [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"-v c:\\sqlinstance2:c:\\ProgramData\\Docker\\volumes\\sqlinstance2","WorkingDirectory":"C:\\","Environment":{"ACCEPT_EULA":"Y","attach_dbs":"[]","sa_password":"Password#12","sa_password_path":"C:\\ProgramData\\Docker\\secrets\\sa-password"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}.

    Tuesday, December 4, 2018 1:05 AM

All replies

  • I beleive correct syntax is `-v sqlinstance2:c:\sqlinstance2` and event better use docker-compose instead of fiddling around with docker CLI
    Tuesday, December 11, 2018 12:52 AM