容器生成错误-无法关闭容器-关机期间容器遇到错误

时间:2020-07-07 13:00:28

标签: docker dockerfile vmware docker-for-windows docker-build

我正在尝试在Windows 2019标准版中构建容器映像。该服务器在VMware环境中运行。使用接收到的docker文件执行docker构建时出现以下错误

返回了非零代码:4294967295:无法关闭容器:容器3bdxxxxx在关闭期间遇到错误:Windows系统调用失败:接口未知。 (0x6b5)

Docker信息

 Server Version: 19.03.5
 Storage Driver: windowsfilter
 Windows:
 Logging Driver: json-file
 Plugins:
 Volume: local
 Network: ics internal l2bridge l2tunnel nat null overlay private transparent
 Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
 Swarm: inactive
 Default Isolation: process
 Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
 Operating System: Windows Server 2019 Standard Version 1809 (OS Build 17763.1282)
 OSType: windows
 Architecture: x86_64
 CPUs: 2
 Total Memory: 6GiB
 Docker Root Dir: C:\ProgramData\docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
 127.0.0.0/8
 Live Restore Enabled: false

Docker Vesion

 Client: Docker Engine - Enterprise
 Version:           19.03.5
 API version:       1.40
 Built:             11/13/2019 08:00:16
 OS/Arch:           windows/amd64
 Experimental:      false

 Server: Docker Engine - Enterprise
 Engine:
 Version:          19.03.5
 API version:      1.40 (minimum version 1.24)
 Built:            11/13/2019 07:58:51
 OS/Arch:          windows/amd64
 Experimental:     false

在docker文件中,我正在使用

  • 从fcr mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019
  • 用于安装Windows功能的PowerShell命令
  • 启动过程命令以启动应用程序EXE

在执行“启动过程”时收到上述错误

1 个答案:

答案 0 :(得分:0)

由于多种原因导致的问题,是否进行了以下更改修复

  • 增加的CPU核心(执行docker build操作时,CPU达到100%,这是由于此容器介于两者之间。)
  • 执行docker构建时,使用了“ -memory = 16g ”参数。请参阅Runtime options with Memory, CPUs, and GPUs for more details
  • 期望重新启动的应用程序EXE在配置中配置为“ / noreboot ”。