docker / setup-buildx-action

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

could not create a builder instance with TLS data loaded from environment #255

Closed davhdavh closed 11 months ago

davhdavh commented 11 months ago

Behaviour

Steps to reproduce this issue

  1. setup self-hosted runner
  2. run job with
    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2

Expected behaviour

No error

Actual behaviour

Creating a new builder instance
  /usr/bin/docker buildx create --name builder-45a227f8-1e88-4639-93b8-9fdd8ad635b4 --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use
  ERROR: could not create a builder instance with TLS data loaded from environment. Please use `docker context create <context-name>` to create a context for current environment and then create a builder instance with `docker buildx create <context-name>`
Error: The process '/usr/bin/docker' failed with exit code 1

Configuration


    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2

Logs

rawlog.txt

Tstrul-work commented 10 months ago

Hey, Did you get to solve this? I'm experiencing the same issue

davhdavh commented 10 months ago

@Tstrul-work yes. You just have to like the error message says. docker context create xxxx and then in docker/setup-buildx-action@v2 you give xxx as parameter

davhdavh commented 10 months ago

endpoint parameter