⚠️ Site communautaire non officiel — Cette documentation est une traduction française indépendante et n'est ni affiliée ni approuvée par Docker, Inc. Consultez le site officiel sur docs.docker.com.

ReservedStageName

Table des matières

Output

'scratch' is reserved and should not be used as a stage name

Description

Reserved words should not be used as names for stages in multi-stage builds. The reserved words are:

  • context
  • scratch

Examples

❌ Bad: scratch and context are reserved names.

FROM alpine AS scratch
FROM alpine AS context

✅ Good: the stage name builder is not reserved.

FROM alpine AS builder