V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
dropdatabase
V2EX  ›  Linux

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

  •  
  •   dropdatabase · 2023-02-14 10:56:32 +08:00 · 1872 次点击
    这是一个创建于 438 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    7 条回复    2023-02-14 13:06:59 +08:00
    ByteCat
        1
    ByteCat  
       2023-02-14 11:51:40 +08:00
    Marinaaaa
        2
    Marinaaaa  
       2023-02-14 12:02:20 +08:00
    一楼应该是正解。


    你 jenkins 打包镜像用的 buildx 吗? node1 节点是 arm 还是 amd ? 是不是 build 出来的镜像架构跟 node1 的架构不一致
    ysicing
        3
    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
        4
    ysicing  
       2023-02-14 12:17:53 +08:00
    @ysicing 回答完看错了,应该就是 1 楼说的那个
    dropdatabase
        5
    dropdatabase  
    OP
       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
        6
    dropdatabase  
    OP
       2023-02-14 12:58:27 +08:00
    @Marinaaaa 感谢回复,Jenkins 打包镜像没有使用 buildx ,节点是 amd 的。问题是不知道这玩意是怎么来的,怎么移除卸载掉。
    dropdatabase
        7
    dropdatabase  
    OP
       2023-02-14 13:06:59 +08:00
    @ByteCat 不清楚 buildkitd 怎么移除卸载掉~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1110 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.