我正在尝试在Windows 2016中使用带有D驱动器的Docker创建Windows容器 我可以创建它(Create D drive in a docker container),但是我不知道如何指定它的大小。 当我尝试在D驱动器中挂载本地文件夹时,我得到了
docker run -it --rm -v D:\Tools:D:\Temp:RO myimage powershell
C:\ Program Files \ Docker \ Docker \ Resources \ bin \ docker.exe:错误 守护程序的响应:容器 4da0e80fd0d11ef5ff4d33b1be0da61fea2c5373a0560592d17889e4468c23bd 在CreateContainer期间遇到错误:Windows中的失败 系统调用:参数错误。 (0x57)额外信息:{ “ SystemType”:“容器”, “名称”:“ 4da0e80fd0d11ef5ff4d33b1be0da61fea2c5373a0560592d17889e4468c23bd”, “所有者”:“码头工人”, “ VolumePath”:“ \\?\ Volume {9448a0bc-7980-11e8-9c23-cb5622ebcc0a}”, “ IgnoreFlushesDuringBoot”:是的, “ LayerFolderPath”:“ D:\ docker \ windowsfilter \ 4da0e80fd0d11ef5ff4d33b1be0da61fea2c5373a0560592d17889e4468c23bd”, “层”:[ { “ ID”:“ 2ffa1f39-dc8b-537a-8080-b516b0f85943”, “路径”:“ D:\ docker \ windowsfilter \ 15841b4d79990be7f44e25c0b014a2c11b6433757f044f926f38d848af69fe22” }, { “ ID”:“ 8f7a549e-dc30-5dcf-9f14-7241cce4c327”, “路径”:“ D:\ docker \ windowsfilter \ 2e0c7c508a8f5696f9eb2b24b6f760af9a448eb553f9930e54e8b2a455defa31” }, { “ ID”:“ 52fdddc7-1abb-5de6-8f86-cfc26f4dd895”, “路径”:“ D:\ docker \ windowsfilter \ ca3796b507abe15568a2f77a81e0a96ce9384d6b0f9e60872bd8bbb52c975ef7” }, { “ ID”:“ e70e46f4-3325-518f-b98b-606447fee4b6”, “路径”:“ D:\ docker \ windowsfilter \ b9c80627fb9375ae771de03c854869ec13ef629ddd71b7a3bb3e49f3b74548ad” }, { “ ID”:“ 716e7eb4-4f52-51ef-8df7-54c5257f1d73”, “路径”:“ D:\ docker \ windowsfilter \ 7c7faabc9f5ebdbc45f758d2bca80002e4d7a3a3cfd2bd39d8e3d3ef05b9b4a2” } ], “ HostName”:“ 4da0e80fd0d1”, “ MappedDirectories”: [ { “ HostPath”:“ D:\ docker \ volumes \ 84da06f51cdee650a2009a552c6917427379b7a9190758212839023231eb958b \ _data”, “ ContainerPath”:“ d:”, “ ReadOnly”:false, “ BandwidthMaximum”:0, “ IOPSMaximum”:0, “ CreateInUtilityVM”:false }, { “ HostPath”:“ d:\”, “ ContainerPath”:“ d:\”, “ ReadOnly”:false, “ BandwidthMaximum”:0, “ IOPSMaximum”:0, “ CreateInUtilityVM”:false } ], “ HvPartition”:否, “ EndpointList”:[“ 2bdea81a-b29b-4b53-b409-dca3d365a9d9”], “ AllowUnqualifiedDNSQuery”:true}
有帮助吗?
谢谢!