来历不明的 buildkitd 容器,请教各位大佬

2023-02-14 10:56:32 +08:00
 dropdatabase

请教大佬,k8s 集群中有台节点 node01 ,莫名多出一个 buildkitd 容器,容器名为“buildx_buildkit_default”,持续集成使用了 Jenkins slave pod ,所有调度到 node01 的 slave pod 都会构建容器镜像失败。想查出这个容器是哪里来的?是谁创建的(删掉后有 slave pod 调度到该机器依旧会创建出来)?#Kubernetes #docker

1880 次点击
所在节点    Linux
7 条回复
ByteCat
2023-02-14 11:51:40 +08:00
Marinaaaa
2023-02-14 12:02:20 +08:00
一楼应该是正解。


你 jenkins 打包镜像用的 buildx 吗? node1 节点是 arm 还是 amd ? 是不是 build 出来的镜像架构跟 node1 的架构不一致
ysicing
2023-02-14 12:17:23 +08:00
新 feat ,新版本支持 build on k8s
docker buildx create --driver kubernetes --platform linux/amd64 --name default-kube-builder --bootstrap --use
ysicing
2023-02-14 12:17:53 +08:00
@ysicing 回答完看错了,应该就是 1 楼说的那个
dropdatabase
2023-02-14 12:57:17 +08:00
@ByteCat 感谢回复,在 node01 上执行 docker buildx build 命令提示 docker: 'buildx' is not a docker command. 看样子并不支持 buildx ,但是 slave pod 构建镜像时提示:WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
dropdatabase
2023-02-14 12:58:27 +08:00
@Marinaaaa 感谢回复,Jenkins 打包镜像没有使用 buildx ,节点是 amd 的。问题是不知道这玩意是怎么来的,怎么移除卸载掉。
dropdatabase
2023-02-14 13:06:59 +08:00
@ByteCat 不清楚 buildkitd 怎么移除卸载掉~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/915936

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX