如何在Windows10上使用卷启动mongo docker容器(18.09.2)

时间:2019-07-13 18:42:15

标签: mongodb docker windows-10

我尝试使用-v参数在Windows 10上启动mongo容器。

C:\Users\chamo\programmation\formations\dockerdata\mongo> docker run -p 27017:27017 -d mongo -v C:\Users\chamo\programmation\formations\dockerdata\mongo:/data/db
2498249f53965f3d5ea6e25a191601327e71ca0dcf3c1aab87a539c87daf4bec
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: container 2498249f53965f3d5ea6e25a191601327e71ca0dcf3c1aab87a539c87daf4bec encountered an error during CreateProcess: failure in a Windows system call: Le fichier spécifié est introuvable. (0x2)
[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000] extra info: 
{"CommandLine":"-v  
C:\\Users\\chamo\\programmation\\formations\\dockerdata\\mongo:/data/db","WorkingDirectory":"C:\\","Environment": 
{"MONGO_DOWNLOAD_SHA256":"d1ddac7ba6e2fbdfaaa0a787b83c165d4ad61795c051dc0f3142717a0b6a3707","MONGO_DOWNLOAD_URL":"https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.10-signed.msi","MONGO_VERSION":"4.0.10"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}.

似乎docker无法看到我的Windows文件夹。 为什么并且有解决方法?

0 个答案:

没有答案