Error AtlasError Documentation and Resolution

Docker Buildx found a reserved stage name in the Dockerfile

ReservedStageName

Docker Buildx build checks found a stage alias that uses a reserved word and should not be used as a stage name.

ReservedStageNamebuildx
ReservedStageName
  • A Dockerfile stage alias uses a reserved name.
  • A copied or generated Dockerfile introduced a stage name that collides with reserved terms.
  • Build checks are enforcing Dockerfile naming rules for stage aliases.
  1. Rename the stage alias to a non-reserved, descriptive name.
  2. Update COPY --from and other stage references after the rename.
  3. Re-run build checks to confirm the stage-name rule passes.
Docker Docs: Build checks
Docker Buildx ReservedStageName: causes and fixes | Error Atlas