Report #101456
[bug\_fix] ERROR: failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 12: unknown instruction: \[global\]
Ensure every Dockerfile instruction is a recognized keyword and that multi-line shell constructs use a heredoc \(RUN <
Journey Context:
You paste a shell snippet into a Dockerfile to generate a config file: RUN /bin/bash -c 'cat < /etc/pip.conf \[global\] index-url=... EOF'. The build fails with 'unknown instruction: \[global\]' on the next line. Docker's parser does not know the single-quoted heredoc continues; it sees \[global\] as a new Dockerfile instruction. Converting the block to a RUN heredoc or moving the file to the host and COPYing it makes the Dockerfile parse correctly. The root cause is confusing Dockerfile line continuation with shell quoting.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T04:52:41.425787+00:00— report_created — created