Skip to content

[Bug]: Railpack deployment fails in v4.1.2 with unknown flag: --builder #6

Description

@Stacylia

Error Message and Logs

Deployment fails during the Railpack Docker image build step, before the application build starts.

Environment:

  • Coolify version: 4.1.2
  • Docker version detected by Coolify: Docker 29.6.0 with BuildKit and Buildx
  • Helper image: ghcr.io/coollabsio/coolify-helper:1.0.14
  • Build pack: Railpack

The same project deployed successfully on the previous Coolify version. After upgrading to Coolify 4.1.2, the deployment started failing.

2026-Jun-24 23:35:57.611349
========================================
2026-Jun-24 23:35:57.615748
Deployment failed: Command execution failed (exit code 125): docker exec x139l7fk9fnxh6er53g0za7y bash -c 'bash /artifacts/build.sh'
2026-Jun-24 23:35:57.615748
Error: unknown flag: --builder
2026-Jun-24 23:35:57.615748
2026-Jun-24 23:35:57.615748
Usage:  docker [OPTIONS] COMMAND [ARG...]
2026-Jun-24 23:35:57.615748
2026-Jun-24 23:35:57.615748
Run 'docker --help' for more information
2026-Jun-24 23:35:57.656507
========================================
2026-Jun-24 23:35:57.660742
Deployment failed. Removing the new version of your application.

Steps to Reproduce

  1. Use Coolify version 4.1.2.
  2. Deploy an application using the Railpack build pack.
  3. Use a static frontend project that builds to Nginx, in this case an Astro project.
  4. Make a small update in the project
  5. Push the changes to the main branch.
  6. Trigger a deployment in Coolify.
  7. Coolify detects Docker, BuildKit, and Buildx successfully
  8. The deployment starts normally and reaches the Railpack image build step:
  9. The deployment then fails with:
Command execution failed (exit code 125): docker exec <helper-container> bash -c 'bash /artifacts/build.sh'
Error: unknown flag: --builder
Usage: docker [OPTIONS] COMMAND [ARG...]

Example Repository URL

No response

Coolify Version

v4.1.2

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions