错误“无法在Win32中进行OpenForBackup失败”。拉Microsoft / Nanoserver容器时 [英] Error "Failed to OpenForBackup failed in Win32" when pulling microsoft/nanoserver container
问题描述
当尝试提取microsoft / nanoserver映像时遇到以下错误。下载成功。
I encounter the following error when attempting to pull the microsoft/nanoserver image. The download is successful. This error occurs during extraction of the image.
482ab31872a2:下载完整的
未能注册层:重新执行错误:退出状态1:输出:在Win32中无法成功打开OpenForBackup :打开\?\C:\ProgramData\Docker\windowsfilter\07bd46b89b4520e984bc0892bad2c955afec4b347f961ca6c31bfe5e30601806\Files\Windows\System32\驱动程序等主机:访问被拒绝。(0x1f)\C:\ProgramData\Docker\windowsfilter\07bd46b89b4520e984bc0892bad2c955afec4b347f961ca6c31bfe5e30601806\Files\Windows\System32 \drivers\etc
482ab31872a2: Download complete failed to register layer: re-exec error: exit status 1: output: Failed to OpenForBackup failed in Win32: open \?\C:\ProgramData\Docker\windowsfilter\07bd46b89b4520e984bc0892bad2c955afec4b347f961ca6c31bfe5e30601806\Files\Windows\System32\drivers\etc\hosts: Access is denied. (0x1f) \?\C:\ProgramData\Docker\windowsfilter\07bd46b89b4520e984bc0892bad2c955afec4b347f961ca6c31bfe5e30601806\Files\Windows\System32\drivers\etc\hosts
这看起来像Windows映像创建的目录上的问题,但是我可以t弄清楚目录可能需要什么权限。
This looks like a issue on the directory that the Windows image creates, but I can't figure out what permission the directory may need.
这是我的Docker版本(Windows容器):
Here is my Docker version (Windows Containers):
Docker版本
客户端:
Version: 1.13.0-rc2**
API version: 1.25
Go version: go1.7.3
Git commit: 1f9b3ef
Built: Wed Nov 23 17:40:58 2016
OS/Arch: windows/amd64
**服务器:
Version: 1.13.0-rc2**
API version: 1.25
Minimum API version: 1.24
Go version: go1.7.3
Git commit: 1f9b3ef
Built: Wed Nov 23 17:40:58 2016
OS/Arch: windows/amd64
Experimental: false
这是我用来拉取映像的Docker命令。
Here is the Docker command I am using to pull the image.
docker pull microsoft/nanoserver
最后,这是下载并提取图像后的错误消息:
Finally, here is the error message that after the image is downloaded and extracted:
这是安装了内部版本14393的Windows 10 Professional工作站。
This is a Windows 10 Professional workstation with build 14393 installed.
推荐答案
此问题的答案是病毒扫描策略(MacAfee)阻止了对Windows映像主机文件的访问。放宽了该策略,以便host.dll进程可以访问该目录。更新后,我可以毫不费力地提取nanonserver或aspnet图像。
The answer to this problem was that a virus scan policy (MacAfee) was preventing access to the Windows image's host file. The policy was relaxed so that the host.dll process could have access to the directory. Once updated I had no problems pulling the nanonserver or aspnet images.
这篇关于错误“无法在Win32中进行OpenForBackup失败”。拉Microsoft / Nanoserver容器时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!