保留阶段名称
目录
输出
'scratch' is reserved and should not be used as a stage name描述
保留字不能用作多阶段构建中阶段的名称。保留字包括:
contextscratch
示例
❌ 错误:scratch 和 context 是保留名称。
FROM alpine AS scratch
FROM alpine AS context✅ 正确:阶段名称 builder 不是保留名称。
FROM alpine AS builder