docker / docker/buildx

buildx failed with: ERROR: failed to solve: invalid user index: -1

Open
#1,408 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/docs kind/docs
Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

Hello,

I'm using buildx on GHA and I get the following error. I've never seen this but does anyone know what's causing this?

ref. https://github.com/mastodon/mastodon/actions/runs/3470550179/jobs/5798997043

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions run and inspect the buildx invocation, builder configuration, and complete logs around “invalid user index: -1.” Compare the environment and BuildKit/buildx versions used there. Done means identifying a reproducible cause and documenting or fixing it with a regression test, if the repository has a matching test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, go
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.