Docker Pull在Windows Container模式下的Windows 10上失败 [英] Docker pull fails on Windows 10 in Windows Container mode

查看:211
本文介绍了Docker Pull在Windows Container模式下的Windows 10上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 10上本机运行docker:



NB:安装docker之前,我确保在Windows功能选项中启用了容器和 Hyper V。



之后安装Docker时,我运行了以下命令:

  docker pull ubuntu 

我得到的输出有错误

  C:\Users \angshuman> docker run ubuntu 
无法在本地找到映像'ubuntu:latest'
最新消息:从库/ ubuntu

5bed26d33875中提取:提取完整的
f11b29a9c730:拉完整
930bda195c84:拉完整
78bf9a5ad49e:拉完整
摘要:sha256:bec5a2727be7fff3d308193cfde3491f8fba1a2ba392b7546b43a051853a341d
状态:为ubuntu下载较新的图像: >

错误:


time = 2020-04-13T17:50:47 + 01:00 level = er ror msg =等待
容器时出错:无法关闭容器:容器
21892c2c1e7edf42bb1255809605579aa79cd0b94b1d4b6edd8fd5a55aab87d2
在hcsshim :: System :: waitBackground期间遇到错误,在Windows系统中:具有
指定标识符的虚拟机或容器未运行。 (0xc0370110):随后的
终止失败的容器
21892c2c1e7edf42bb1255809605579aa79cd0b94b1d4b6edd8fd5a55aab87d2
在Windows系统调用hcsshim :: System :: waitBackground期间遇到错误:
指定的标识符未运行。 (0xc0370110)


有什么想法请解决此问题吗?



编辑:在以下答案中提出建议后



我降级为 2.2.0.3 experimental:true Windows Container 已启用



< img src = https://i.stack.imgur.com/KniGk.png alt =在此处输入图片描述>



它<这次是strong>下载图片,仍然无法运行。
问题现在仍然存在,并存在其他错误。



错误:

  docker:来自守护程序的错误响应:容器0bb1d91f5e1090bc83e8541d923484a1c07dd5adae7a7779ac0f080bd5c11815在CreateProcess期间遇到错误:Windows系统调用失败:未指定的错误(0x80004005)
[事件详细信息:运行失败/ exec调用容器0bb1d91f5e1090bc83e8541d923484a1c07dd5adae7a7779ac0f080bd5c11815:退出状态1堆栈跟踪:
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
/ go / s / github。 com / Microsoft / opengcs / service / gcs / runtime / runc / runc.go:580
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).runCreateCommand
/ go / src / github.com / Microsoft / opengcs / service / gcs / runtime / runc / runc.go:471
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime)。 CreateContainer
/go/src/github.com/Microsoft/opengcs/service/gcs /runtime/runc/runc.go:113
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
/go/src/github.com/Microsoft /opengcs/service/gcs/core/gcs/gcs.go:351
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
/ go / src / github .com / Microsoft / opengcs / service / gcs / bridge / bridge.go:637
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
/ go /src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
/ go / src / github.com / Microsoft / opengcs / service / gcs / bridge / bridge.go:72
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
/ go / src / github.com / Microsoft / opengcs / service / gcs / bridge / bridge.go:146
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2。 1
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335
runtime.goexi t
/usr/lib/go/src/runtime/asm_amd64.s:1333
提供者:00000000-0000-0000-0000-000000000000]

额外信息:{ CommandArgs:[-t], WorkingDirectory: /, Environment:{ HOSTNAME: 0bb1d91f5e10, PATH: / usr / local / sbin:/ usr / local / bin: / usr / sbin:/ usr / bin:/ sbin:/ bin}, CreateStdInPipe:true, CreateStdOutPipe:true, CreateStdErrPipe:true, ConsoleSize:[0,0], OCISpecification: { ociVersion: 1.0.1-dev, process:{ user:{ uid:0, gid:0}, args:[-t], env :[ PATH = / usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin, HOSTNAME = 0bb1d91f5e10], cwd: / ,功能:{边界:[ CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_MKNOD, CAP_NET_RAW, CAP_SETGID, CAP_SETUID, CAP_SETFCAP, CAP_SETPCAP , CAP_NET_BIND_SERVICE, CAP_SYS_CHROOT, CAP_KILL, CAP_AUDIT_WRITE],有效:[ CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_MKNOD, CAP_NET_RAW , CAP_SETUID, CAP_SETFCAP, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_ SYS_CHROOT, CAP_KILL, CAP_AUDIT_WRITE],可继承:[ CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_MKNOD, CAP_NET_RAW, CAP_SETGID, CAP_SETGID, CAP_SETGID CAP_SETFCAP, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_SYS_CHROOT, CAP_KILL, CAP_AUDIT_WRITE],允许:[ CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWM, CAP_NET_RAW, CAP_SETGID, CAP_SETUID, CAP_SETFCAP, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_SYS_CHROOT, CAP_KILL, CAP_AUDIT_WRITE]}}, root:{ path: rootfs }, hostname: 0bb1d91f5e10, mounts:[{ destination: / proc, type: proc, source: proc, options:[ nosuid, noexec, nodev]},{ destination: / dev, type: tmpfs, source: tmpfs, options:[ nosuid, strictatime, mode = 755, size = 65536k]},{ destination: / dev / pts, type: devpts, source: devpts, options:[ nosuid, noexec, newinstance, ptmxmode = 0666, mode = 0620, gid = 5]},{ destination: / sys, type: sysfs, source: sysfs, options:[ nosuid, noexec, nodev, ro]},{ desti国家: / sys / fs / cgroup,类型: cgroup,源: cgroup,选项:[ ro, nosuid, noexec, nodev]} ,{ destination: / dev / mqueue, type: mqueue, source: mqueue, options:[ nosuid, noexec, nodev]}},{ destination: / dev / shm, type: tmpfs, source: shm, options:[ nosuid, noexec, nodev, mode = 1777]} ], linux:{ resources:{}, namespaces:[{ type: mount},{ type: network},{ type: uts},{ type: pid},{ type: ipc}]], maskedPaths:[ / proc / asound, / proc / acpi, / proc / kcore, / proc /键, / proc / latency_stats, / proc / timer_list, / proc / timer_stats, / proc / sched_debug, / proc / scsi, / sys / firmware], readonlyPaths: [ / proc / bus, / proc / fs, / proc / irq, / proc / sys, / proc / sysrq-trigger]}, windows:{ layerFolders:[ C:\\ProgramData\\Docker\\lcow\\ef134f2d5748c591bf21cc2b407c49dd9be012dad5d15052bab87fc00b96444f, C:\\ProgramData\\Docker\\lcow\\4712bcdc1771139991818c44b2352c5585457db6b14285cc6b2d6b630ef4551 C:\\ProgramData\\Docker\\lcow\\970a55c64e9bb9d5600 7e940a6ac94de463a7ad4b602f2d829f21c29b92e5369, C:\\ProgramData\\Docker\\lcow\\79eeaef19460e004253147fa7b109664492516495d6c7d63b8631112be468f7d, C:\\ProgramData\\Docker\\lcow\\ 0bb1d91f5e1090bc83e8541d923484a1c07dd5adae7a7779ac0f080bd5c11815], hyperv:{}, network:{ endpointList:[ B5E11D3C-E874-406C-BCC0-94E1173E3E1B}],DNS。

C:\Users\angshuman> docker run 4e5021d210f6 -it
docker:守护程序的错误响应:容器bdd2ed406d421f00c963190cc975e5bf5f1f22b9c3536af687870257257968b1fc4在CreateProcess期间遇到错误:Windows系统失败(0x80004005)
[事件详细信息:无法运行容器bdd2ed406d421f00c963190cc975e975b5f1f22b9c3536af687870257968968b1fc4的runc创建/执行调用失败:退出状态1堆栈跟踪:
github.com/Microsoft/opengcs/service/gcs/runtime/runc。 *容器).startProcess
/go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:580
github.com/Microsoft/opengcs/service/gcs /runtime/runc.(*runcRuntime).runCreateCommand
/go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:471
github.com/Microsoft /opengcs/service/gcs/runtime/runc.(*runcRuntime).CreateContainer
/go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:113
github.com/Microso ft / opengcs / service / gcs / core / gcs。(* gcsCore).ExecProcess
/go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:351
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge .go:253
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge。转到:72
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/ bridge.go:146
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
/go/src/github.com/Microsoft/opengcs/服务/gcs/bridge/bridge.go:335
runtime.goexit
/ usr / lib / go / src / runtime / asm_amd64。 s:1333提供程序:00000000-0000-0000-0000-000000000000]额外信息:{ CommandArgs:[-it], WorkingDirectory: /, Environment:{ HOSTNAME: bdd2ed406d42 , PATH: / usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin}, CreateStdInPipe:true, CreateStdOutPipe:true, CreateStdErrPipe:true, ConsoleSize:[0,0], OCISpecification:{ ociVersion: 1.0.1-dev, process:{ user:{ uid:0, gid:0}, args:[-it], env:[ PATH = / usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin, HOSTNAME = bdd2ed406d42], cwd: /,功能:{ bounding:[ CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_MKNOD , CAP_NET_RAW, CAP_SETGID, CAP_SETUID, CAP_SETFCAP, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_SYS_CHROOT, CAP_KILL, CAP_AUDIT_WRITE],有效:[ CAP_CHOWN, CAP , CAP_FSETID, CAP_FOWNER, CAP_MKNOD, CAP_NET_RAW, CAP_SETGID, CAP_SETUID, CAP_SETFCAP, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP_SYS_CHROOT, CAP_KILL, CAP_KILL, 可继承:[ CAP_CHO WN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_MKNOD, CAP_NET_RAW, CAP_SETGID, CAP_SETUID, CAP_SETFCAP, CAP_SETPCAP, CAP_NET_BIND_SERVICE, CAP _CAP_SYS_CH , CAP_AUDIT_WRITE],允许:[ CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FSETID, CAP_FOWNER, CAP_MKNOD, CAP_NET_RAW, CAP_SETGID, CAP_SETUID, CAP_SETFCAP, CAP_SETFCAP , CAP_NET_BIND_SERVICE, CAP_SYS_CHROOT, CAP_KILL, CAP_AUDIT_WRITE]}}, root:{ path: rootfs}, hostname: bdd2ed406d42, mounts:[{ destination : / proc, type: proc, source: proc, options:[ nosuid, noexec, nodev]},{ destination: / dev , type: tmpfs, source: tmpfs, options:[ nosuid, strictatime, mode = 755, size = 65536k]},{目的地: / dev / pts, type: devpts, source: devpts, options:[ nosuid, noexec, newinstance, ptmxmode = 0666, mode = 0620 , gid = 5]},{ destination: / sys, type: sysfs, source: sysfs, options:[ nosuid, noexec, nodev, ro]},{ destination: / sys / fs / cgroup, type: cgroup, source: cgroup, optio ns:[ ro, nosuid, noexec, nodev]},{ destination: / dev / mqueue, type: mqueue, source: mqueue, options:[ nosuid, noexec, nodev]},{ destination: / dev / shm, type: tmpfs, source: shm, options :[ nosuid, noexec, nodev, mode = 1777]}]], linux:{ resources:{}, namespaces:[{ type: mount}, { type:网络},{ type: uts},{ type: pid},{ type: ipc}]], maskedPaths:[ / proc / asound, / proc / acpi, / proc / kcore, / proc / keys, / proc / latency_stats, / proc / timer_list, / proc / timer_stats, / proc / sched_debug , / proc / scsi, / sys / firmware], readonlypaths:[ / proc / bus, / proc / fs, / proc / irq, / proc / sys, / proc / sysrq-trigger]}, windows:{ layerFolders:[ C:\\ProgramData\\Docker\\lcow\\ef134f2d5748c591bf21cc2b407c49dd9be012dad5d15052bab87fc00b96444f, C:\ \\ProgramData\\Docker\\lcow\\4712bcdc17711399918c44b2352c5585457db6b14285cc6b2d6b630ef4ced551, C:\\ProgramData\\Docker\\lcow\\970a55c64e9bb9d56007e940a6ac94de463a7ad4b602f2d829f21c29b92e4 \\程序数据\\Docker\\lcow\\79eeaef19460e004253147fa7b109664492516495d6c7d63b8631112be468f7d, C:\\ProgramData\\Docker\\lcow\\bdd2ed406d421f00c963190cc975e5bf5f1f22b9c3536af687870per968v968b1fc4:},hy network:{ endpointList:[ C19D44B9-33F9-470A-8EC8-5C9283CE25FE], allowUnqualifiedDNSQuery:true}}}}。

谢谢



Angshuman

解决方案

microsoft / hcsshim问题624


Windows刚刚进行了更新并放下了该驱动程序的新副本




  • 将C:\Windows\System32\drivers\cbfs6.sys重命名为其他名称(或删除它)。

  • 删除容器。

  • 重新启动。


依次指的是 docker / for-win / issue 3884


nsoftware.com上的帅哥刚刚解决了他们的SFTP Drive v2问题。

确实问题出在cbfs驱动程序中。新版本按预期运行,并且不会与Docker发生冲突。


但是 Microsoft / hcsshim问题790 也提到了相同的错误:


该问题存在于Windows 2.2.0.4及更高版本的Docker桌面CE中2.2.0.5



降级到2.2.0.3解决了该问题。







如果要在Windows上本地运行容器,请下一页提到了类似 mcr.microsoft.com/windows/nanoserver:1903 的图像



仅在Linux容器模式下,Ubuntu映像无法在此模式下工作。






总结一下:


  1. 将Docker Desktop降级到2.2.0.3

  2. 重新启动计算机(不要忘记)

  3. 删除所有以前创建的容器/映像(如果有)

  4. docker run -it ubuntu -(出于某种原因,显示bash shell,然后退出交互模式)

  5. Run docker run -it ubuntu 再次-现在,现在(第二次进入交互模式)并停留

这有效!


I am trying to run docker natively on Windows 10 : https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=Windows-10-Client

My Windows version is :

OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.18362 N/A Build 18362.720

Docker version is :

Docker version 19.03.8, build afacb8b

{
  "registry-mirrors": [],
  "insecure-registries": [],
  "debug": true,
  "experimental": true
}

Docker Desktop Community : 2.2.0.5 (43884)

This is how the menu looks after installing : i.e. I am in "Windows Container mode"

NB : Before installing docker, I made sure "Containers" and "Hyper V" are enabled in Windows Features options.

After installing Docker, I ran this command :

docker pull ubuntu

I got this output with an error

C:\Users\angshuman>docker run ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu

5bed26d33875: Pull complete
f11b29a9c730: Pull complete
930bda195c84: Pull complete
78bf9a5ad49e: Pull complete
Digest: sha256:bec5a2727be7fff3d308193cfde3491f8fba1a2ba392b7546b43a051853a341d
Status: Downloaded newer image for ubuntu:latest

Error:

time="2020-04-13T17:50:47+01:00" level=error msg="Error waiting for container: failed to shutdown container: container 21892c2c1e7edf42bb1255809605579aa79cd0b94b1d4b6edd8fd5a55aab87d2 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): subsequent terminate failed container 21892c2c1e7edf42bb1255809605579aa79cd0b94b1d4b6edd8fd5a55aab87d2 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110)

Any idea how to resolve the issue please ?

Edit: After suggestion in the answer below

I downgraded to 2.2.0.3 with experimental : true and Windows Container enabled:

It downloads the image this time, but still does not run. Issue persists with a different error now.

Error:

docker: Error response from daemon: container 0bb1d91f5e1090bc83e8541d923484a1c07dd5adae7a7779ac0f080bd5c11815 encountered an error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)
[Event Detail: failed to run runc create/exec call for container 0bb1d91f5e1090bc83e8541d923484a1c07dd5adae7a7779ac0f080bd5c11815: exit status 1 Stack Trace:
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:580
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).runCreateCommand
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:471
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).CreateContainer
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:113
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:351
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335
runtime.goexit
        /usr/lib/go/src/runtime/asm_amd64.s:1333 
Provider: 00000000-0000-0000-0000-000000000000] 

extra info: {"CommandArgs":["-t"],"WorkingDirectory":"/","Environment":{"HOSTNAME":"0bb1d91f5e10","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0],"OCISpecification":{"ociVersion":"1.0.1-dev","process":{"user":{"uid":0,"gid":0},"args":["-t"],"env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOSTNAME=0bb1d91f5e10"],"cwd":"/","capabilities":{"bounding":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"],"effective":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"],"inheritable":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"],"permitted":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"]}},"root":{"path":"rootfs"},"hostname":"0bb1d91f5e10","mounts":[{"destination":"/proc","type":"proc","source":"proc","options":["nosuid","noexec","nodev"]},{"destination":"/dev","type":"tmpfs","source":"tmpfs","options":["nosuid","strictatime","mode=755","size=65536k"]},{"destination":"/dev/pts","type":"devpts","source":"devpts","options":["nosuid","noexec","newinstance","ptmxmode=0666","mode=0620","gid=5"]},{"destination":"/sys","type":"sysfs","source":"sysfs","options":["nosuid","noexec","nodev","ro"]},{"destination":"/sys/fs/cgroup","type":"cgroup","source":"cgroup","options":["ro","nosuid","noexec","nodev"]},{"destination":"/dev/mqueue","type":"mqueue","source":"mqueue","options":["nosuid","noexec","nodev"]},{"destination":"/dev/shm","type":"tmpfs","source":"shm","options":["nosuid","noexec","nodev","mode=1777"]}],"linux":{"resources":{},"namespaces":[{"type":"mount"},{"type":"network"},{"type":"uts"},{"type":"pid"},{"type":"ipc"}],"maskedPaths":["/proc/asound","/proc/acpi","/proc/kcore","/proc/keys","/proc/latency_stats","/proc/timer_list","/proc/timer_stats","/proc/sched_debug","/proc/scsi","/sys/firmware"],"readonlyPaths":["/proc/bus","/proc/fs","/proc/irq","/proc/sys","/proc/sysrq-trigger"]},"windows":{"layerFolders":["C:\\ProgramData\\Docker\\lcow\\ef134f2d5748c591bf21cc2b407c49dd9be012dad5d15052bab87fc00b96444f","C:\\ProgramData\\Docker\\lcow\\4712bcdc17711399918c44b2352c5585457db6b14285cc6b2d6b630ef4ced551","C:\\ProgramData\\Docker\\lcow\\970a55c64e9bb9d56007e940a6ac94de463a7ad4b602f2d829f21c29b92e5369","C:\\ProgramData\\Docker\\lcow\\79eeaef19460e004253147fa7b109664492516495d6c7d63b8631112be468f7d","C:\\ProgramData\\Docker\\lcow\\0bb1d91f5e1090bc83e8541d923484a1c07dd5adae7a7779ac0f080bd5c11815"],"hyperv":{},"network":{"endpointList":["B5E11D3C-E874-406C-BCC0-94E1173E3E1B"],"allowUnqualifiedDNSQuery":true}}}}.

C:\Users\angshuman>docker run 4e5021d210f6 -it
docker: Error response from daemon: container bdd2ed406d421f00c963190cc975e5bf5f1f22b9c3536af687870257968b1fc4 encountered an error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)
[Event Detail: failed to run runc create/exec call for container bdd2ed406d421f00c963190cc975e5bf5f1f22b9c3536af687870257968b1fc4: exit status 1 Stack Trace:
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:580
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).runCreateCommand
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:471
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).CreateContainer
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:113
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:351
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335
runtime.goexit
        /usr/lib/go/src/runtime/asm_amd64.s:1333 Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandArgs":["-it"],"WorkingDirectory":"/","Environment":{"HOSTNAME":"bdd2ed406d42","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0],"OCISpecification":{"ociVersion":"1.0.1-dev","process":{"user":{"uid":0,"gid":0},"args":["-it"],"env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOSTNAME=bdd2ed406d42"],"cwd":"/","capabilities":{"bounding":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"],"effective":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"],"inheritable":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"],"permitted":["CAP_CHOWN","CAP_DAC_OVERRIDE","CAP_FSETID","CAP_FOWNER","CAP_MKNOD","CAP_NET_RAW","CAP_SETGID","CAP_SETUID","CAP_SETFCAP","CAP_SETPCAP","CAP_NET_BIND_SERVICE","CAP_SYS_CHROOT","CAP_KILL","CAP_AUDIT_WRITE"]}},"root":{"path":"rootfs"},"hostname":"bdd2ed406d42","mounts":[{"destination":"/proc","type":"proc","source":"proc","options":["nosuid","noexec","nodev"]},{"destination":"/dev","type":"tmpfs","source":"tmpfs","options":["nosuid","strictatime","mode=755","size=65536k"]},{"destination":"/dev/pts","type":"devpts","source":"devpts","options":["nosuid","noexec","newinstance","ptmxmode=0666","mode=0620","gid=5"]},{"destination":"/sys","type":"sysfs","source":"sysfs","options":["nosuid","noexec","nodev","ro"]},{"destination":"/sys/fs/cgroup","type":"cgroup","source":"cgroup","options":["ro","nosuid","noexec","nodev"]},{"destination":"/dev/mqueue","type":"mqueue","source":"mqueue","options":["nosuid","noexec","nodev"]},{"destination":"/dev/shm","type":"tmpfs","source":"shm","options":["nosuid","noexec","nodev","mode=1777"]}],"linux":{"resources":{},"namespaces":[{"type":"mount"},{"type":"network"},{"type":"uts"},{"type":"pid"},{"type":"ipc"}],"maskedPaths":["/proc/asound","/proc/acpi","/proc/kcore","/proc/keys","/proc/latency_stats","/proc/timer_list","/proc/timer_stats","/proc/sched_debug","/proc/scsi","/sys/firmware"],"readonlyPaths":["/proc/bus","/proc/fs","/proc/irq","/proc/sys","/proc/sysrq-trigger"]},"windows":{"layerFolders":["C:\\ProgramData\\Docker\\lcow\\ef134f2d5748c591bf21cc2b407c49dd9be012dad5d15052bab87fc00b96444f","C:\\ProgramData\\Docker\\lcow\\4712bcdc17711399918c44b2352c5585457db6b14285cc6b2d6b630ef4ced551","C:\\ProgramData\\Docker\\lcow\\970a55c64e9bb9d56007e940a6ac94de463a7ad4b602f2d829f21c29b92e5369","C:\\ProgramData\\Docker\\lcow\\79eeaef19460e004253147fa7b109664492516495d6c7d63b8631112be468f7d","C:\\ProgramData\\Docker\\lcow\\bdd2ed406d421f00c963190cc975e5bf5f1f22b9c3536af687870257968b1fc4"],"hyperv":{},"network":{"endpointList":["C19D44B9-33F9-470A-8EC8-5C9283CE25FE"],"allowUnqualifiedDNSQuery":true}}}}.

Thanks

Angshuman

解决方案

This seems to be followed by microsoft/hcsshim issue 624

Windows just did an update and laid down a new copy of this driver.

  • Rename the C:\Windows\System32\drivers\cbfs6.sys as something else (or delete it).
  • Remove the container.
  • Reboot.

That in turn refers to docker/for-win/issue 3884

Awesome guys at nsoftware.com just fixed the issue with their SFTP Drive v2.
Indeed the problem was in cbfs driver. New version is working as expected and doesn't collide with Docker.

But microsoft/hcsshim issue 790 also mentions the same error:

The issue is present in Docker Desktop CE for windows 2.2.0.4 & 2.2.0.5

A downgrade to 2.2.0.3 resolved the issue.


If you want to "run containers natively on Windows", the next page mentions images like mcr.microsoft.com/windows/nanoserver:1903

An Ubuntu image would not work in this mode, only in the Linux Container mode.


To summarize:

  1. Downgrade Docker Desktop to 2.2.0.3
  2. Reboot machine (don't forget)
  3. Delete all previously created containers / images (if any)
  4. docker run -it ubuntu - (for some reason , shows the bash shell & then, goes out of interactive mode)
  5. Run docker run -it ubuntu again - now, goes into interactive mode now (2nd time) and stays

This works !

这篇关于Docker Pull在Windows Container模式下的Windows 10上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆