Docker构建总是失败,并出现错误hcsshim :: PrepareLayer-Win32失败:功能不正确。 (0x1)Windows容器

问题描述 投票:0回答:1

复制步骤非常容易。

创建Dockerfile。

我的Dockerfile还有很多行,但是我已经修剪了几行,所以我们可以专注于问题的根源。

表示,仅这两行(仅此而已)显示了问题。

FROM microsoft/iis
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $VerbosePreference = 'Continue'; "]

运行docker build .,您会得到hcsshim::PrepareLayer - failed failed in Win32: Función incorrecta. (0x1)

Windows 10 Pro 1909(但它也在1903年发生)

Docker版本:2.1.0.5

引擎:19.03.5

机器:0.16.2

docker-for-windows
1个回答
0
投票

这仍然是issue (still open) with Win10。看起来像使用文件系统过滤器(如Dropbox,Box等)卸载云存储提供程序,对于某些用户来说,这是一种解决方法。

卸载云存储提供商或病毒扫描程序;如果您确定哪一个无效,请在https://github.com/docker/for-win/issues/3884]中共享

© www.soinside.com 2019 - 2024. All rights reserved.