小编Zac*_*ack的帖子

Windows 10 Docker 构建错误:“来自发件人的错误:打开 LogFiles\WMI\RtBackup:访问被拒绝。”

我正在尝试在 64 位 Windows 10 控制台上为 Python 项目构建 Docker 映像。我安装了 Docker 版本 20.10.7,其中包含基于 WSL2 的引擎和 Ubuntu-18.04 集成。

Dockerfile结构如下:

FROM python:3.8.10

MAINTAINER 

WORKDIR ./VoiceRecognition

COPY ./ .


RUN pip install -r requirements.txt

COPY ./ .

ENTRYPOINT [ 'python3' ]

CMD [ 'VoiceRecognition/RunSpeakerIdentitification.py' ]
Run Code Online (Sandbox Code Playgroud)

我尝试在 Windows Powershell 中使用以下命令执行构建操作:

docker build -t voice-recognition:v1 -f ./VoiceRecognition/Dockerfile .

以管理员身份运行 Powershell 会出现以下错误:

=> ERROR [internal] load build context                                                                            3.1s
 => => transferring context: 114.79MB                                                                              3.1s
------
 > [internal] load build context:
------
error from sender: open …
Run Code Online (Sandbox Code Playgroud)

windows powershell docker windows-10 dockerfile

5
推荐指数
1
解决办法
3204
查看次数

标签 统计

docker ×1

dockerfile ×1

powershell ×1

windows ×1

windows-10 ×1