Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Pbe2RsrnVcPrF
V2EX  ›  Linux

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

  •  
  •   Pbe2RsrnVcPrF · Feb 14, 2023 · 2536 views
    This topic created in 1207 days ago, the information mentioned may be changed or developed.

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

    7 replies    2023-02-14 13:06:59 +08:00
    ByteCat
        1
    ByteCat  
       Feb 14, 2023
    marunrun
        2
    marunrun  
       Feb 14, 2023
    一楼应该是正解。


    你 jenkins 打包镜像用的 buildx 吗? node1 节点是 arm 还是 amd ? 是不是 build 出来的镜像架构跟 node1 的架构不一致
    ysicing
        3
    ysicing  
       Feb 14, 2023
    新 feat ,新版本支持 build on k8s
    docker buildx create --driver kubernetes --platform linux/amd64 --name default-kube-builder --bootstrap --use
    ysicing
        4
    ysicing  
       Feb 14, 2023
    @ysicing 回答完看错了,应该就是 1 楼说的那个
    Pbe2RsrnVcPrF
        5
    Pbe2RsrnVcPrF  
    OP
       Feb 14, 2023
    @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
    Pbe2RsrnVcPrF
        6
    Pbe2RsrnVcPrF  
    OP
       Feb 14, 2023
    @Marinaaaa 感谢回复,Jenkins 打包镜像没有使用 buildx ,节点是 amd 的。问题是不知道这玩意是怎么来的,怎么移除卸载掉。
    Pbe2RsrnVcPrF
        7
    Pbe2RsrnVcPrF  
    OP
       Feb 14, 2023
    @ByteCat 不清楚 buildkitd 怎么移除卸载掉~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2793 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 12:57 · PVG 20:57 · LAX 05:57 · JFK 08:57
    ♥ Do have faith in what you're doing.