# failed to solve with frontend dockerfile.v0: failed to read dockerfile: error parsing dockerfile: unknown instruction: \

- **ID:** `docker/dockerfile-parse-error-line-continuation`
- **Domain:** docker
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 88%

## Root Cause

Trailing backslash used for line continuation in Dockerfile is not properly escaped or is followed by a space, causing parser to treat it as an instruction.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Docker 24.0.7 | active | — | — |
| Docker 25.0.1 | active | — | — |

## Workarounds

1. **Ensure no trailing spaces after backslash: replace 'RUN apt-get update && \\n    apt-get install -y curl' with proper formatting using a single line or array syntax.** (90% success)
   ```
   Ensure no trailing spaces after backslash: replace 'RUN apt-get update && \\n    apt-get install -y curl' with proper formatting using a single line or array syntax.
   ```
2. **Use JSON array syntax for RUN to avoid line continuation issues: 'RUN ["apt-get", "update"]'.** (85% success)
   ```
   Use JSON array syntax for RUN to avoid line continuation issues: 'RUN ["apt-get", "update"]'.
   ```

## Dead Ends

- **** — Removing the backslash entirely breaks multi-line RUN commands, causing syntax errors in shell. (70% fail)
- **** — Adding more backslashes compounds the parsing error without fixing the root cause. (90% fail)
