Error AtlasError Documentation and Resolution

Docker Buildx found an undefined build argument in FROM

UndefinedArgInFrom

Docker Buildx build checks found a Dockerfile FROM instruction that references a build argument that is not defined.

UndefinedArgInFrombuildx
UndefinedArgInFrom
  • A FROM instruction references a build argument that was never declared.
  • The ARG declaration appears after the first place it is used.
  • A renamed build argument was not updated everywhere in the Dockerfile.
  1. Declare the build argument with ARG before the FROM instruction that uses it.
  2. Check for typos or renamed variables in the image reference.
  3. Run the build again after aligning the ARG names and ordering.
Docker Docs: Build checks
Docker Buildx UndefinedArgInFrom: causes and fixes | Error Atlas