【问题标题】:Container Build error - failed to shutdown container - container encountered an error during Shutdown容器构建错误 - 无法关闭容器 - 容器在关闭期间遇到错误
【发布时间】:2020-10-27 17:57:42
【问题描述】:

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

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

码头工人信息

 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 版本

 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文件中,我正在使用

  • 来自 mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019
  • PowerShell 命令安装 windows 功能
  • start-process 命令启动应用程序 EXE

执行“start-process”时收到上述错误

【问题讨论】:

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


    【解决方案1】:

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

    • 增加 CPU 内核(CPU 在执行 docker build 操作时达到 100%,由于此容器在中间退出)。
    • 在执行 docker build 时使用了“--memory=16g”参数。参考Runtime options with Memory, CPUs, and GPUs for more details
    • 需要重新启动的应用程序 EXE 在配置中配置了“/noreboot”。

    【讨论】:

      猜你喜欢
      • 2023-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-03
      • 2019-04-25
      • 2012-06-06
      相关资源
      最近更新 更多