docker / setup-buildx-action

GitHub Action to set up Docker Buildx
https://github.com/marketplace/actions/docker-setup-buildx
Apache License 2.0
984 stars 156 forks source link

setup-buildx-action@v3 ignores buildkitd-flags input when driver is cloud #357

Closed EthanCo81 closed 1 month ago

EthanCo81 commented 1 month ago

Contributing guidelines

I've found a bug, and:

Description

When I specify buildkitd-flags under setup-buildx-action@v3 in my workflow, workflow attempts to create a builder instance without specifying those flags.

Expected behaviour

Under "Set up Docker Buildx" Execute command /usr/bin/docker buildx create --name builder-c93e3b66-fdf7-4cea-a3a8-a1d4c7b59797 --driver cloud --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use ethanco/apollobuilder

Actual behaviour

Command Executing: /usr/bin/docker buildx create --name builder-c93e3b66-fdf7-4cea-a3a8-a1d4c7b59797 --driver cloud --use ethanco/apollobuilder

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Docker Image CI

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:

  build:

    runs-on: ubuntu-latest

    steps:
      - name: Log in to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ vars.DOCKER_USER }}
          password: ${{ secrets.DOCKER_PAT }}
      - name: Docker meta
        id: meta
        uses: docker/metadata-action@v4
        with:
          images: apollo/jyggalag
          tags: |
            type=raw,value={{date 'YYYY/MM/DD-hh:mm:ss'}}
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3.6.1
        with:
          version: "lab:latest"
          driver: cloud
          endpoint: "ethanco/apollobuilder"
          buildkitd-flags: "--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host"
      - name: Build and push
        uses: docker/build-push-action@v6
        with:
          tags: ${{ steps.meta.outputs.tags }}
          # For pull requests, export results to the build cache.
          # Otherwise, push to a registry.
          outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}

Workflow logs

2024-09-27T18:57:03.9598364Z ##[group]Operating System
2024-09-27T18:57:03.9599012Z Ubuntu
2024-09-27T18:57:03.9599384Z 22.04.5
2024-09-27T18:57:03.9599796Z LTS
2024-09-27T18:57:03.9600210Z ##[endgroup]
2024-09-27T18:57:03.9600564Z ##[group]Runner Image
2024-09-27T18:57:03.9601066Z Image: ubuntu-22.04
2024-09-27T18:57:03.9601493Z Version: 20240922.1.0
2024-09-27T18:57:03.9602500Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240922.1/images/ubuntu/Ubuntu2204-Readme.md
2024-09-27T18:57:03.9604321Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240922.1
2024-09-27T18:57:03.9605234Z ##[endgroup]
2024-09-27T18:57:03.9605659Z ##[group]Runner Image Provisioner
2024-09-27T18:57:03.9606257Z 2.0.384.1
2024-09-27T18:57:03.9606611Z ##[endgroup]
2024-09-27T18:57:03.9621139Z ##[group]GITHUB_TOKEN Permissions
2024-09-27T18:57:03.9622732Z Contents: read
2024-09-27T18:57:03.9623279Z Metadata: read
2024-09-27T18:57:03.9623846Z Packages: read
2024-09-27T18:57:03.9624604Z ##[endgroup]
2024-09-27T18:57:03.9626596Z Secret source: Actions
2024-09-27T18:57:03.9627292Z Prepare workflow directory
2024-09-27T18:57:04.0256955Z Prepare all required actions
2024-09-27T18:57:04.0414938Z Getting action download info
2024-09-27T18:57:04.2270374Z Download action repository 'docker/login-action@v3' (SHA:9780b0c442fbb1117ed29e0efdff1e18412f7567)
2024-09-27T18:57:04.6814791Z Download action repository 'docker/metadata-action@v4' (SHA:818d4b7b91585d195f67373fd9cb0332e31a7175)
2024-09-27T18:57:04.9465284Z Download action repository 'docker/setup-buildx-action@v3.6.1' (SHA:988b5a0280414f521da01fcc63a27aeeb4b104db)
2024-09-27T18:57:05.2806685Z Download action repository 'docker/build-push-action@v6' (SHA:32945a339266b759abcbdc89316275140b0fc960)
2024-09-27T18:57:05.7367040Z Complete job name: build
2024-09-27T18:57:05.8237645Z ##[group]Run docker/login-action@v3
2024-09-27T18:57:05.8238048Z with:
2024-09-27T18:57:05.8238281Z   username: ***
2024-09-27T18:57:05.8238762Z   password: ***
2024-09-27T18:57:05.8239028Z   ecr: auto
2024-09-27T18:57:05.8239251Z   logout: true
2024-09-27T18:57:05.8239477Z ##[endgroup]
2024-09-27T18:57:06.2504743Z Logging into Docker Hub...
2024-09-27T18:57:06.4633729Z Login Succeeded!
2024-09-27T18:57:06.4930488Z ##[group]Run docker/metadata-action@v4
2024-09-27T18:57:06.4931135Z with:
2024-09-27T18:57:06.4931563Z   images: ***
2024-09-27T18:57:06.4932201Z   tags: type=raw,value={{date 'YYYY/MM/DD-hh:mm:ss'}}

2024-09-27T18:57:06.4932968Z   context: workflow
2024-09-27T18:57:06.4933812Z   github-token: ***
2024-09-27T18:57:06.4934478Z ##[endgroup]
2024-09-27T18:57:06.9121841Z ##[group]Context info
2024-09-27T18:57:06.9122886Z eventName: push
2024-09-27T18:57:06.9123439Z sha: 58a9b3060280280bbff65a48556874b8d3a4fe9e
2024-09-27T18:57:06.9124587Z ref: refs/heads/main
2024-09-27T18:57:06.9125253Z workflow: Docker Image CI
2024-09-27T18:57:06.9125925Z action: meta
2024-09-27T18:57:06.9126558Z actor: EthanCo81
2024-09-27T18:57:06.9127206Z runNumber: 12
2024-09-27T18:57:06.9127767Z runId: 11076198165
2024-09-27T18:57:06.9128842Z ##[endgroup]
2024-09-27T18:57:06.9129981Z ##[group]Processing images input
2024-09-27T18:57:06.9130925Z name=***,enable=true
2024-09-27T18:57:06.9132030Z ##[endgroup]
2024-09-27T18:57:06.9138089Z ##[group]Processing tags input
2024-09-27T18:57:06.9140314Z type=raw,value={{date 'YYYY/MM/DD-hh:mm:ss'}},enable=true,priority=200
2024-09-27T18:57:06.9141532Z ##[endgroup]
2024-09-27T18:57:06.9142617Z ##[group]Processing flavor input
2024-09-27T18:57:06.9143253Z latest=auto
2024-09-27T18:57:06.9145191Z prefix=
2024-09-27T18:57:06.9146481Z prefixLatest=false
2024-09-27T18:57:06.9147869Z suffix=
2024-09-27T18:57:06.9148259Z suffixLatest=false
2024-09-27T18:57:06.9149041Z ##[endgroup]
2024-09-27T18:57:06.9216483Z ##[group]Docker image version
2024-09-27T18:57:06.9218277Z 2024-09-27-06-57-06
2024-09-27T18:57:06.9220590Z ##[endgroup]
2024-09-27T18:57:06.9224241Z ##[group]Docker tags
2024-09-27T18:57:06.9226695Z apollo/jyggalag:2024-09-27-06-57-06
2024-09-27T18:57:06.9228913Z ##[endgroup]
2024-09-27T18:57:06.9374555Z ##[group]Docker labels
2024-09-27T18:57:06.9377088Z org.opencontainers.image.created=2024-09-27T18:57:06.914Z
2024-09-27T18:57:06.9377948Z org.opencontainers.image.description=
2024-09-27T18:57:06.9378812Z org.opencontainers.image.licenses=Apache-2.0
2024-09-27T18:57:06.9380047Z org.opencontainers.image.revision=58a9b3060280280bbff65a48556874b8d3a4fe9e
2024-09-27T18:57:06.9381527Z org.opencontainers.image.source=https://github.com/EthanCo81/jyggalag-backend
2024-09-27T18:57:06.9382745Z org.opencontainers.image.title=jyggalag-backend
2024-09-27T18:57:06.9384144Z org.opencontainers.image.url=https://github.com/EthanCo81/jyggalag-backend
2024-09-27T18:57:06.9385332Z org.opencontainers.image.version=2024-09-27-06-57-06
2024-09-27T18:57:06.9386422Z ##[endgroup]
2024-09-27T18:57:06.9388186Z ##[group]JSON output
2024-09-27T18:57:06.9390604Z {
2024-09-27T18:57:06.9390991Z   "tags": [
2024-09-27T18:57:06.9391577Z     "apollo/jyggalag:2024-09-27-06-57-06"
2024-09-27T18:57:06.9392100Z   ],
2024-09-27T18:57:06.9392433Z   "labels": {
2024-09-27T18:57:06.9393089Z     "org.opencontainers.image.created": "2024-09-27T18:57:06.914Z",
2024-09-27T18:57:06.9394088Z     "org.opencontainers.image.description": "",
2024-09-27T18:57:06.9395162Z     "org.opencontainers.image.licenses": "Apache-2.0",
2024-09-27T18:57:06.9396145Z     "org.opencontainers.image.revision": "58a9b3060280280bbff65a48556874b8d3a4fe9e",
2024-09-27T18:57:06.9397527Z     "org.opencontainers.image.source": "https://github.com/EthanCo81/jyggalag-backend",
2024-09-27T18:57:06.9398666Z     "org.opencontainers.image.title": "jyggalag-backend",
2024-09-27T18:57:06.9399726Z     "org.opencontainers.image.url": "https://github.com/EthanCo81/jyggalag-backend",
2024-09-27T18:57:06.9400837Z     "org.opencontainers.image.version": "2024-09-27-06-57-06"
2024-09-27T18:57:06.9401499Z   }
2024-09-27T18:57:06.9401812Z }
2024-09-27T18:57:06.9402482Z ##[endgroup]
2024-09-27T18:57:06.9403200Z ##[group]Bake file definition
2024-09-27T18:57:06.9403663Z {
2024-09-27T18:57:06.9404171Z   "target": {
2024-09-27T18:57:06.9404673Z     "docker-metadata-action": {
2024-09-27T18:57:06.9405165Z       "tags": [
2024-09-27T18:57:06.9405957Z         "apollo/jyggalag:2024-09-27-06-57-06"
2024-09-27T18:57:06.9406529Z       ],
2024-09-27T18:57:06.9406870Z       "labels": {
2024-09-27T18:57:06.9407603Z         "org.opencontainers.image.created": "2024-09-27T18:57:06.914Z",
2024-09-27T18:57:06.9408448Z         "org.opencontainers.image.description": "",
2024-09-27T18:57:06.9409311Z         "org.opencontainers.image.licenses": "Apache-2.0",
2024-09-27T18:57:06.9410923Z         "org.opencontainers.image.revision": "58a9b3060280280bbff65a48556874b8d3a4fe9e",
2024-09-27T18:57:06.9412741Z         "org.opencontainers.image.source": "https://github.com/EthanCo81/jyggalag-backend",
2024-09-27T18:57:06.9414307Z         "org.opencontainers.image.title": "jyggalag-backend",
2024-09-27T18:57:06.9415621Z         "org.opencontainers.image.url": "https://github.com/EthanCo81/jyggalag-backend",
2024-09-27T18:57:06.9416973Z         "org.opencontainers.image.version": "2024-09-27-06-57-06"
2024-09-27T18:57:06.9417808Z       },
2024-09-27T18:57:06.9418277Z       "args": {
2024-09-27T18:57:06.9418969Z         "DOCKER_META_IMAGES": "apollo/jyggalag",
2024-09-27T18:57:06.9419929Z         "DOCKER_META_VERSION": "2024-09-27-06-57-06"
2024-09-27T18:57:06.9420579Z       }
2024-09-27T18:57:06.9421123Z     }
2024-09-27T18:57:06.9421572Z   }
2024-09-27T18:57:06.9422076Z }
2024-09-27T18:57:06.9423800Z ##[endgroup]
2024-09-27T18:57:06.9556452Z ##[group]Run docker/setup-buildx-action@v3.6.1
2024-09-27T18:57:06.9556927Z with:
2024-09-27T18:57:06.9557244Z   version: lab:latest
2024-09-27T18:57:06.9557651Z   driver: cloud
2024-09-27T18:57:06.9558034Z   endpoint: ethanco/apollobuilder
2024-09-27T18:57:06.9558760Z   buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
2024-09-27T18:57:06.9559692Z   install: false
2024-09-27T18:57:06.9560036Z   use: true
2024-09-27T18:57:06.9560355Z   cache-binary: true
2024-09-27T18:57:06.9560766Z   cleanup: true
2024-09-27T18:57:06.9561064Z env:
2024-09-27T18:57:06.9561450Z   DOCKER_METADATA_OUTPUT_VERSION: 2024-09-27-06-57-06
2024-09-27T18:57:06.9562095Z   DOCKER_METADATA_OUTPUT_TAGS: apollo/jyggalag:2024-09-27-06-57-06
2024-09-27T18:57:06.9564929Z   DOCKER_METADATA_OUTPUT_LABELS: org.opencontainers.image.created=2024-09-27T18:57:06.914Z
org.opencontainers.image.description=
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.revision=58a9b3060280280bbff65a48556874b8d3a4fe9e
org.opencontainers.image.source=https://github.com/EthanCo81/jyggalag-backend
org.opencontainers.image.title=jyggalag-backend
org.opencontainers.image.url=https://github.com/EthanCo81/jyggalag-backend
org.opencontainers.image.version=2024-09-27-06-57-06
2024-09-27T18:57:06.9569713Z   DOCKER_METADATA_OUTPUT_JSON: {"tags":["apollo/jyggalag:2024-09-27-06-57-06"],"labels":{"org.opencontainers.image.created":"2024-09-27T18:57:06.914Z","org.opencontainers.image.description":"","org.opencontainers.image.licenses":"Apache-2.0","org.opencontainers.image.revision":"58a9b3060280280bbff65a48556874b8d3a4fe9e","org.opencontainers.image.source":"https://github.com/EthanCo81/jyggalag-backend","org.opencontainers.image.title":"jyggalag-backend","org.opencontainers.image.url":"https://github.com/EthanCo81/jyggalag-backend","org.opencontainers.image.version":"2024-09-27-06-57-06"}}
2024-09-27T18:57:06.9572659Z   DOCKER_METADATA_OUTPUT_BAKE_FILE: /tmp/docker-actions-toolkit-4daC6A/docker-metadata-action-bake.json
2024-09-27T18:57:06.9573527Z ##[endgroup]
2024-09-27T18:57:07.2588731Z ##[group]Docker info
2024-09-27T18:57:07.2592456Z [command]/usr/bin/docker version
2024-09-27T18:57:07.2796429Z Client: Docker Engine - Community
2024-09-27T18:57:07.2798534Z  Version:           26.1.3
2024-09-27T18:57:07.2799242Z  API version:       1.45
2024-09-27T18:57:07.2799872Z  Go version:        go1.21.10
2024-09-27T18:57:07.2800555Z  Git commit:        b72abbb
2024-09-27T18:57:07.2801395Z  Built:             Thu May 16 08:33:29 2024
2024-09-27T18:57:07.2802164Z  OS/Arch:           linux/amd64
2024-09-27T18:57:07.2802857Z  Context:           default
2024-09-27T18:57:07.2803416Z 
2024-09-27T18:57:07.2803796Z Server: Docker Engine - Community
2024-09-27T18:57:07.2804771Z  Engine:
2024-09-27T18:57:07.2805289Z   Version:          26.1.3
2024-09-27T18:57:07.2806117Z   API version:      1.45 (minimum version 1.24)
2024-09-27T18:57:07.2806950Z   Go version:       go1.21.10
2024-09-27T18:57:07.2807749Z   Git commit:       8e96db1
2024-09-27T18:57:07.2808512Z   Built:            Thu May 16 08:33:29 2024
2024-09-27T18:57:07.2809245Z   OS/Arch:          linux/amd64
2024-09-27T18:57:07.2810084Z   Experimental:     false
2024-09-27T18:57:07.2810787Z  containerd:
2024-09-27T18:57:07.2811383Z   Version:          1.7.22
2024-09-27T18:57:07.2812266Z   GitCommit:        7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
2024-09-27T18:57:07.2813209Z  runc:
2024-09-27T18:57:07.2813722Z   Version:          1.1.14
2024-09-27T18:57:07.2814972Z   GitCommit:        v1.1.14-0-g2c9f560
2024-09-27T18:57:07.2815807Z  docker-init:
2024-09-27T18:57:07.2816348Z   Version:          0.19.0
2024-09-27T18:57:07.2817186Z   GitCommit:        de40ad0
2024-09-27T18:57:07.2851046Z [command]/usr/bin/docker info
2024-09-27T18:57:07.4839791Z Client: Docker Engine - Community
2024-09-27T18:57:07.4840653Z  Version:    26.1.3
2024-09-27T18:57:07.4841228Z  Context:    default
2024-09-27T18:57:07.4841833Z  Debug Mode: false
2024-09-27T18:57:07.4842916Z  Plugins:
2024-09-27T18:57:07.4843448Z   buildx: Docker Buildx (Docker Inc.)
2024-09-27T18:57:07.4844476Z     Version:  v0.17.1
2024-09-27T18:57:07.4845313Z     Path:     /usr/libexec/docker/cli-plugins/docker-buildx
2024-09-27T18:57:07.4846147Z   compose: Docker Compose (Docker Inc.)
2024-09-27T18:57:07.4847175Z     Version:  v2.27.1
2024-09-27T18:57:07.4847927Z     Path:     /usr/libexec/docker/cli-plugins/docker-compose
2024-09-27T18:57:07.4848770Z 
2024-09-27T18:57:07.4848946Z Server:
2024-09-27T18:57:07.4849589Z  Containers: 0
2024-09-27T18:57:07.4850190Z   Running: 0
2024-09-27T18:57:07.4850736Z   Paused: 0
2024-09-27T18:57:07.4851413Z   Stopped: 0
2024-09-27T18:57:07.4851966Z  Images: 15
2024-09-27T18:57:07.4852636Z  Server Version: 26.1.3
2024-09-27T18:57:07.4853218Z  Storage Driver: overlay2
2024-09-27T18:57:07.4854507Z   Backing Filesystem: extfs
2024-09-27T18:57:07.4855321Z   Supports d_type: true
2024-09-27T18:57:07.4855958Z   Using metacopy: false
2024-09-27T18:57:07.4856637Z   Native Overlay Diff: false
2024-09-27T18:57:07.4857376Z   userxattr: false
2024-09-27T18:57:07.4858154Z  Logging Driver: json-file
2024-09-27T18:57:07.4858874Z  Cgroup Driver: cgroupfs
2024-09-27T18:57:07.4859650Z  Cgroup Version: 2
2024-09-27T18:57:07.4860183Z  Plugins:
2024-09-27T18:57:07.4860725Z   Volume: local
2024-09-27T18:57:07.4861516Z   Network: bridge host ipvlan macvlan null overlay
2024-09-27T18:57:07.4862824Z   Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
2024-09-27T18:57:07.4864266Z  Swarm: inactive
2024-09-27T18:57:07.4864894Z  Runtimes: io.containerd.runc.v2 runc
2024-09-27T18:57:07.4865717Z  Default Runtime: runc
2024-09-27T18:57:07.4866606Z  Init Binary: docker-init
2024-09-27T18:57:07.4867760Z  containerd version: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
2024-09-27T18:57:07.4868829Z  runc version: v1.1.14-0-g2c9f560
2024-09-27T18:57:07.4869666Z  init version: de40ad0
2024-09-27T18:57:07.4870324Z  Security Options:
2024-09-27T18:57:07.4870868Z   apparmor
2024-09-27T18:57:07.4871440Z   seccomp
2024-09-27T18:57:07.4871978Z    Profile: builtin
2024-09-27T18:57:07.4872527Z   cgroupns
2024-09-27T18:57:07.4873271Z  Kernel Version: 6.8.0-1014-azure
2024-09-27T18:57:07.4874250Z  Operating System: Ubuntu 22.04.5 LTS
2024-09-27T18:57:07.4874929Z  OSType: linux
2024-09-27T18:57:07.4875613Z  Architecture: x86_64
2024-09-27T18:57:07.4876270Z  CPUs: 2
2024-09-27T18:57:07.4876817Z  Total Memory: 7.753GiB
2024-09-27T18:57:07.4877633Z  Name: fv-az1424-277
2024-09-27T18:57:07.4878378Z  ID: 50f520d9-697c-4217-af0f-2af166f71cd2
2024-09-27T18:57:07.4879151Z  Docker Root Dir: /var/lib/docker
2024-09-27T18:57:07.4880043Z  Debug Mode: false
2024-09-27T18:57:07.4880610Z  Username: ethanco
2024-09-27T18:57:07.4881231Z  Experimental: false
2024-09-27T18:57:07.4882106Z  Insecure Registries:
2024-09-27T18:57:07.4882709Z   127.0.0.0/8
2024-09-27T18:57:07.4883363Z  Live Restore Enabled: false
2024-09-27T18:57:07.4883773Z 
2024-09-27T18:57:07.4900071Z ##[endgroup]
2024-09-27T18:57:07.5736012Z ##[group]Download buildx from GitHub Releases
2024-09-27T18:57:07.7477758Z Use 0.16.2-desktop.1 version spec cache key for v0.16.2-desktop.1
2024-09-27T18:57:08.0057703Z Cache Size: ~16 MB (16974300 B)
2024-09-27T18:57:08.0097007Z [command]/usr/bin/tar -xf /home/runner/work/_temp/c001ec27-b61e-4bd2-8172-bbae7785e3f4/cache.tzst -P -C /home/runner/work/jyggalag-backend/jyggalag-backend --use-compress-program unzstd
2024-09-27T18:57:08.2484948Z Cache restored successfully
2024-09-27T18:57:08.2504868Z Restored buildx-dl-bin-lab-0.16.2-desktop.1-linux-x64 from GitHub Actions cache
2024-09-27T18:57:08.3185697Z Cached to hosted tool cache /opt/hostedtoolcache/buildx-dl-bin-lab/0.16.2-desktop.1/linux-x64
2024-09-27T18:57:08.3812528Z Buildx binary found in /home/runner/.docker/buildx/.bin/0.16.2-desktop.1/linux-x64/docker-buildx
2024-09-27T18:57:08.3816243Z ##[endgroup]
2024-09-27T18:57:08.3817370Z ##[group]Install buildx
2024-09-27T18:57:08.3818014Z Docker plugin mode
2024-09-27T18:57:08.4288669Z Fixing perms
2024-09-27T18:57:08.4292390Z Plugin path: /home/runner/.docker/cli-plugins/docker-buildx
2024-09-27T18:57:08.4294587Z ##[endgroup]
2024-09-27T18:57:08.4296935Z ##[group]Buildx version
2024-09-27T18:57:08.4324918Z [command]/usr/bin/docker buildx version
2024-09-27T18:57:08.4977109Z github.com/docker/buildx v0.16.2-desktop.1 081c21b9e461293ae243a1ff813a680a4f5f8fb9
2024-09-27T18:57:08.5011128Z ##[endgroup]
2024-09-27T18:57:08.5022725Z ##[group]Creating a new builder instance
2024-09-27T18:57:08.5919859Z [command]/usr/bin/docker buildx create --name builder-c93e3b66-fdf7-4cea-a3a8-a1d4c7b59797 --driver cloud --use ethanco/apollobuilder
2024-09-27T18:57:08.7246013Z ERROR: unknown builder: failed to fetch hub token: failed to get token, got: 400 Bad Request. Trace ID: . Response body: {"errinfo":{},"message":"malformed request"}
2024-09-27T18:57:08.7247811Z 
2024-09-27T18:57:08.7248460Z 
2024-09-27T18:57:08.7277817Z ##[endgroup]
2024-09-27T18:57:08.7307942Z ##[error]ERROR: unknown builder: failed to fetch hub token: failed to get token, got: 400 Bad Request. Trace ID: . Response body: {"errinfo":{},"message":"malformed request"}
2024-09-27T18:57:08.8463426Z Received 16974300 of 16974300 (100.0%), 16.2 MBs/sec
2024-09-27T18:57:08.8647298Z Post job cleanup.
2024-09-27T18:57:09.1133681Z ##[group]Removing builder
2024-09-27T18:57:09.1633021Z builder-c93e3b66-fdf7-4cea-a3a8-a1d4c7b59797 does not exist
2024-09-27T18:57:09.1635751Z ##[endgroup]
2024-09-27T18:57:09.1636815Z ##[group]Cleaning up certificates
2024-09-27T18:57:09.1639338Z ##[endgroup]
2024-09-27T18:57:09.1640315Z ##[group]Post cache
2024-09-27T18:57:09.1640839Z State not set
2024-09-27T18:57:09.1641669Z ##[endgroup]
2024-09-27T18:57:09.1747754Z Post job cleanup.
2024-09-27T18:57:09.4801890Z [command]/usr/bin/docker logout 
2024-09-27T18:57:09.5027491Z Removing login credentials for https://index.docker.io/v1/
2024-09-27T18:57:09.5029456Z ##[group]Post cache
2024-09-27T18:57:09.5030670Z State not set
2024-09-27T18:57:09.5031974Z ##[endgroup]
2024-09-27T18:57:09.5286123Z Cleaning up orphan processes

BuildKit logs

No response

Additional info

I'm trying to add these flags because I noticed they were used in the default creation call (when I don't specifiy and with parameters). When I don't specify with parameters I'm able to create the builder, but when I try to use my cloud builder I get 400 errors (as seen in the logs)

crazy-max commented 1 month ago

@EthanCo81 Thanks for reporting!

buildkitd-flags is not supported by drivers managing instances by themselves like cloud or remote. That being said we should still pass the flag on builder creation if user opt-in for it so the driver can error out.

For the error 2024-09-27T18:57:08.7246013Z ERROR: unknown builder: failed to fetch hub token: failed to get token, got: 400 Bad Request. Trace ID: . Response body: {"errinfo":{},"message":"malformed request"}, it seems the cloud instance ethanco/apollobuilder doesn't exist. Any idea @silvin-lubecki @fiam ?

crazy-max commented 1 month ago

https://github.com/docker/setup-buildx-action/pull/363 should fix the issue.

For the error 2024-09-27T18:57:08.7246013Z ERROR: unknown builder: failed to fetch hub token: failed to get token, got: 400 Bad Request. Trace ID: . Response body: {"errinfo":{},"message":"malformed request"}, it seems the cloud instance ethanco/apollobuilder doesn't exist.

If you still have an issue for this one, please open an issue on https://github.com/docker/build-cloud-feedback, thanks!