本文介绍了Docker Pull在Windows Container模式下的Windows 10上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在尝试在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下载较新的图像: > 错误: 有什么想法请解决此问题吗? 编辑:在以下答案中提出建议后 我降级为 2.2.0.3 和 experimental:true 和 Windows Container 已启用: 它下载图片,但仍然无法运行。 问题现在仍然存在,并存在其他错误。 错误: 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 依次指的是 docker / for-win / issue 3884 但是 Microsoft / hcsshim问题790 也提到了相同的错误: 如果要在Windows上本地运行容器,请下一页提到了类似 mcr.microsoft.com/windows/nanoserver:1903 的图像 仅在Linux容器模式下,Ubuntu映像无法在此模式下工作。 总结一下: 将Docker Desktop降级到2.2.0.3 重新启动计算机(不要忘记) 删除所有以前创建的容器/映像(如果有) docker run -it ubuntu -(出于某种原因,显示bash shell,然后退出交互模式) 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-ClientMy Windows version is :OS Name: Microsoft Windows 10 ProOS Version: 10.0.18362 N/A Build 18362.720Docker 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 ubuntuI got this output with an errorC:\Users\angshuman>docker run ubuntuUnable to find image 'ubuntu:latest' locallylatest: Pulling from library/ubuntu5bed26d33875: Pull completef11b29a9c730: Pull complete930bda195c84: Pull complete78bf9a5ad49e: Pull completeDigest: sha256:bec5a2727be7fff3d308193cfde3491f8fba1a2ba392b7546b43a051853a341dStatus: Downloaded newer image for ubuntu:latestError:Any idea how to resolve the issue please ?Edit: After suggestion in the answer belowI 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:580github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).runCreateCommand /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:471github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).CreateContainer /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:113github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:351github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1 /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335runtime.goexit /usr/lib/go/src/runtime/asm_amd64.s:1333Provider: 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 -itdocker: 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:580github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).runCreateCommand /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:471github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).CreateContainer /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:113github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:351github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1 /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335runtime.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}}}}.ThanksAngshuman 解决方案 This seems to be followed by microsoft/hcsshim issue 624That in turn refers to docker/for-win/issue 3884But microsoft/hcsshim issue 790 also mentions the same error:If you want to "run containers natively on Windows", the next page mentions images like mcr.microsoft.com/windows/nanoserver:1903An Ubuntu image would not work in this mode, only in the Linux Container mode.To summarize:Downgrade Docker Desktop to 2.2.0.3Reboot machine (don't forget)Delete all previously created containers / images (if any)docker run -it ubuntu - (for some reason , shows the bash shell & then, goes out of interactive mode)Run docker run -it ubuntu again - now, goes into interactive mode now (2nd time) and staysThis works ! 这篇关于Docker Pull在Windows Container模式下的Windows 10上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 16:48