Skip to main content
Empty continuation lines are deprecated and will cause errors in future Dockerfile syntax versions.

Description

Support for empty continuation (\) lines has been deprecated and will generate errors in future versions of the Dockerfile syntax. Empty continuation lines are empty lines following a newline escape.

Examples

Bad:
Good:
Bad:
Good (empty lines removed):

Auto-fix

The fix removes empty continuation lines from multi-line commands.

Reference