我在 Windows Server 2016(版本 1607)上运行 Docker Enterprise。当我运行时docker-compose up -d --build
,Docker 开始构建我的项目,但在第一组下载完成后失败并出现以下错误:
Step 1/4 : FROM microsoft/dotnet:2.1-sdk-nanoserver-1803
2.1-sdk-nanoserver-1803: Pulling from microsoft/dotnet
e46172273a4e: Download complete
1f7d468f830c: Download complete
49e2df75adc8: Download complete
5bf149b5ccf5: Download complete
8b3ace20105f: Download complete
c17187292dad: Download complete
501949accc8a: Download complete
f87c5e7b5f65: Download complete
ERROR: Windows named pipe error: The pipe has been ended. (code: 109)
发生这种情况后,所有其他docker
命令都将失败,因为守护程序已停止运行。我可以通过查看“服务”窗口来验证这一点:
我必须手动重新启动 Docker 服务,然后才能执行更多docker
命令。
为什么会发生这种情况,我该如何解决?
这是来自的输出docker version
:
PS C:\> docker version
Client:
Version: 17.10.0-ee-preview-3
API version: 1.33
Go version: go1.8.4
Git commit: 1649af8
Built: Fri Oct 6 17:52:28 2017
OS/Arch: windows/amd64
Server:
Version: 17.10.0-ee-preview-3
API version: 1.34 (minimum version 1.24)
Go version: go1.8.4
Git commit: b8571fd
Built: Fri Oct 6 18:01:48 2017
OS/Arch: windows/amd64
Experimental: true