Interview Prep/Docker/Build failures and cache problems

`failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error on line 12: unknown instruction: RUNN`

BeginnerTroubleshootingBuild failures and cache problems
Answer

Likely causes → Typo, or a missing line continuation backslash making the next line an instruction.

Diagnose → Check the stated line; hadolint Dockerfile.

Fix → Correct the instruction; ensure \ at end of continued lines with no trailing spaces after it.

Prevent → Lint in CI and use an editor with Dockerfile support.

All Docker questions Roadmap: Docker & containers

More on Build failures and cache problems