小编sq8*_*q89的帖子

GitHub Actions + Docker 构建:错误:由于 OSError 无法安装软件包:[Errno 13] 权限被拒绝:'/nonexistent'

我有一个 GitHub Actions 工作流程,但我的构建失败,因为 Docker 无法安装我的requirements.txt文件中的所有库。

在此COPY ./requirements.txt .步骤中以及软件包下载完成后,安装阶段将停止并出现错误:ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/nonexistent'

当我查看日志时,我注意到:

#7 [2/7] RUN adduser --system nonroot
#0 0.105 Adding system user `nonroot' (UID 100) ...
#0 0.105 Adding new user `nonroot' (UID 100) with group `nogroup' ...
#7 0.117 Not creating `/nonexistent'. <---???
#7 DONE 0.7s
Run Code Online (Sandbox Code Playgroud)

这是昨天成功的 CI 工作流程的片段:

#7 [2/7] RUN adduser --system nonroot
#0 0.099 Adding system user `nonroot' (UID …
Run Code Online (Sandbox Code Playgroud)

docker github-actions

4
推荐指数
1
解决办法
606
查看次数

标签 统计

docker ×1

github-actions ×1