备注:在Docker构建步骤中,执行“apt-get update”时出现“executor failed running”错误

在进行Docker构建时,出现了“RUN apt-get update”错误。
虽然一开始认为是GPG密钥或与存储库的连接问题,但实际上只是本地环境容量不足。

处理方法

$ docker系统清理
警告!这将删除:

所有已停止的容器
所有未被至少一个容器使用的网络
所有悬空镜像
所有悬空构建缓存


总共回收的空间:43.17GB


错误日志

=> 错误 [4/7] 正在运行 apt-get update 1.1秒
[4/7] 正在运行 apt-get update:
#0 0.753 获取:1 http://deb.debian.org/debian bookworm InRelease [147 kB]
#0 0.785 获取:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
#0 0.789 获取:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#0 0.869 错误:1 http://deb.debian.org/debian bookworm InRelease
#0 0.869 遇到至少一个无效的签名。
#0 0.947 错误:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 0.947 遇到至少一个无效的签名。
#0 1.036 错误:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 1.036 遇到至少一个无效的签名。
#0 1.051 正在读取软件包列表…
#0 1.078 W: GPG 错误:http://deb.debian.org/debian bookworm InRelease:遇到至少一个无效的签名。
#0 1.078 E: 仓库 ‘http://deb.debian.org/debian bookworm InRelease’ 未签名。
#0 1.078 W: GPG 错误:http://deb.debian.org/debian bookworm-updates InRelease:遇到至少一个无效的签名。
#0 1.078 E: 仓库 ‘http://deb.debian.org/debian bookworm-updates InRelease’ 未签名。
#0 1.078 W: GPG 错误:http://deb.debian.org/debian-security bookworm-security InRelease:遇到至少一个无效的签名。
#0 1.078 E: 仓库 ‘http://deb.debian.org/debian-security bookworm-security InRelease’ 未签名。
错误:解决失败:执行程序失败 [/bin/sh -c apt-get update]:退出代码:100


仅提供一种中文版本:
引用

尽管日志微妙地有所不同,但内容是相同的。