簡體   English   中英

Windows 10 Docker 生成錯誤:“來自發件人的錯誤:打開 LogFiles\WMI\RtBackup:訪問被拒絕。”

[英]Windows 10 Docker Build Error: "error from sender: open LogFiles\WMI\RtBackup: Access is denied."

我正在嘗試在 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' ]

我正在嘗試在 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 LogFiles\WMI\RtBackup: Access is denied.

我在論壇上搜索了一個潛在的解決方案,但所有相關問題的故障排除方法似乎都不起作用。 我已經按照此處的說明編輯了組權限,並嘗試在構建命令之前調用docker login 此外,以非管理員身份運行 Powershell 會引發此(不同的)錯誤:

=> ERROR [internal] load build context                                                                           47.6s
 => => transferring context: 1.42GB                                                                               47.6s
------
 > [internal] load build context:
------
error from sender: open AppData\Local\ElevatedDiagnostics: Access is denied.

任何幫助將不勝感激。 謝謝。

我剛才有這個問題。 奇怪的是,當我將目錄更改為上一級時,它已修復。

我有同樣的問題,我沒有很好的解決方案我會告訴你什么對我有用:

我總是使用 linux,但我想在 windows 上嘗試 docker,所以我在我的應用程序中執行了相同的步驟和相同的配置,但它失敗了。 我不知道為什么會產生這個錯誤:

來自發件人的錯誤:打開 env\lib64:訪問被拒絕。

然后在 windows 上安裝 linux bash 就可以了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM