容器xxx在CreateContainer期间遇到错误:Windows系统调用失败:系统找不到指定的文件。 (0x2)

时间:2018-10-03 07:48:07

标签: docker docker-windows

为什么我的所有容器都无法启动?每次出现以下错误:

PS C:\temp> docker run hello-world:nanoserver
C:\Program Files\Docker\docker.exe: Error response from daemon: container cec0e5f7f4036b1131a0bac64fd4584b1a5a4e281c328e
1469b552d2a71a573d encountered an error during CreateContainer: failure in a Windows system call: The system cannot find
 the file specified. (0x2) extra info: {"SystemType":"Container","Name":"cec0e5f7f4036b1131a0bac64fd4584b1a5a4e281c328e1
469b552d2a71a573d","Owner":"docker","IsDummy":false,"VolumePath":"\\\\?\\Volume{ab8f2c3c-c60e-11e8-a954-000d3a29ddea}","
IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\cec0e5f7f4036b1131a0bac64fd4584
b1a5a4e281c328e1469b552d2a71a573d","Layers":[{"ID":"c16957a2-b267-5d69-bed2-b88101cfd068","Path":"C:\\ProgramData\\docke
r\\windowsfilter\\dd06f430510c44d8de638de561e2dc03f0767f5c25f7de473afbd4fecdd2966a"},{"ID":"022a60a1-3ff0-53ed-834c-d94c
20ace7d3","Path":"C:\\ProgramData\\docker\\windowsfilter\\143b5173dbffea4cff3a50c45deea80304965912ae12cade49148c5fa5896e
a6"},{"ID":"33227722-bcc0-563e-9aea-d65ad26f3975","Path":"C:\\ProgramData\\docker\\windowsfilter\\7c2ea9d76aaf65f480b6af
c5360a1e94a82bdad25a94ff4e3d3dd10ce66d3b83"},{"ID":"3c04557d-f902-5ce7-baaf-103387e002f8","Path":"C:\\ProgramData\\docke
r\\windowsfilter\\a573e37ad3ec7dfe2ad94311e2f1a4315f3632bde004a4e1444640b9e993126a"}],"HostName":"cec0e5f7f403","MappedD
irectories":[],"HvPartition":false,"EndpointList":["70b4a434-9bea-4631-a67c-f5ed8667edb9"],"Servicing":false,"AllowUnqua
lifiedDNSQuery":true}.

我已经按照以下说明安装了适用于Windows的Docker Enterprise:https://docs.docker.com/install/windows/docker-ee/

Install-Module DockerMsftProvider -Force
Install-Package Docker -ProviderName DockerMsftProvider -Force
Restart-Computer

并使用以下命令运行容器:

docker run hello-world:nanoserver

容器第一次按预期方式启动,但是第二次及以后,容器将失败,并显示相同的错误。

我怀疑这与网络有关。因为如果我使用-b“ None”参数运行守护程序,那么它将起作用:

dockerd.exe -b "none"

任何帮助将不胜感激。

PS C:\temp> docker version
Client:
 Version:      17.06.2-ee-16
 API version:  1.30
 Go version:   go1.8.7
 Git commit:   9ef4f0a
 Built:        Thu Jul 26 16:43:19 2018
 OS/Arch:      windows/amd64

Server:
 Engine:
  Version:      17.06.2-ee-16
  API version:  1.30 (minimum version 1.24)
  Go version:   go1.8.7
  Git commit:   9ef4f0a
  Built:        Thu Jul 26 16:52:17 2018
  OS/Arch:      windows/amd64
  Experimental: false

1 个答案:

答案 0 :(得分:1)

基于this post,我们发现导致此问题的是反病毒软件。
就像帖子中提到的那样,删除(不只是禁用)反病毒解决了问题。

对于与Docker不兼容的反病毒,还有待观察。