1 DL3063
Moritz Röhrich edited this page 2026-04-30 09:56:59 +02:00

Stage name should not be a reserved word

Problematic code:

FROM debian:bullseye AS scratch

Correct code:

FROM debian:bullseye AS foobar

Rationale:

scratch and context are reserved words and should not be used as stage names. See also: https://docs.docker.com/reference/build-checks/reserved-stage-name/