Error AtlasError Documentation and Resolution

Docker build found empty continuation lines in the Dockerfile

Empty continuation line found in a Dockerfile instruction

Docker build checks found empty continuation lines that may become hard errors in future Dockerfile parsing behavior.

NoEmptyContinuationbuild errors
Empty continuation line found in a Dockerfile instruction
  • A multiline Dockerfile instruction contains a blank continued line.
  • Formatting changes introduced a stray backslash continuation with no content after it.
  • The Dockerfile was edited for readability in a way that now violates build checks.
  1. Locate the multiline instruction named by the check and remove blank lines following its continuation escape character.
  2. For a simple example, replace an EXPOSE instruction split across a backslash and a blank line with EXPOSE 8080 on one line.
  3. For longer RUN instructions, keep continued arguments together. If a separator is necessary, use a meaningful comment: Docker's check does not treat comment lines as empty.
  4. Check the generated Dockerfile if a template or CI script creates it. Fixing only a local copy will not change the build input.
  5. Run docker build --check . with a Buildx version supporting build checks, then run the normal build. Confirm the warning is gone without suppressing the check.
Docker Docs: NoEmptyContinuation