Skip to content

[Request]: Support the BUILDKIT_COLORS environment variable for customizing console output. #915

Description

@spkane

Feature or enhancement request details

The default color scheme for buildkit/buildctl is awful for dark backgrounds and buildkit has support for modifying colors (as I wrote it), but locally set environment variables do not seem to be passed all the way through with container, or it is using a very old version of buildkit/buildctl.

It would be VERY useful to be able to set these as usual using something like:

export BUILDKIT_COLORS=run=green:warning=yellow:error=red:cancel=cyan and export NOCOLOR.

See:

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Nov 25, 2025
  2. karenheckel commented on Dec 5, 2025

    @karenheckel
    Contributor

    @spkane Hello! @sarasando and I are students from UT Austin and looking to complete one more issue for our Virtualization class. Would we be able to close this one?

  3. spkane commented on Dec 5, 2025

    @spkane
    Author
  4. jglogan commented on Dec 5, 2025

    @jglogan
    Contributor

    @karenheckel Assigned! Do you have a sense for how to go about this one?

  5. karenheckel commented on Dec 7, 2025

    @karenheckel
    Contributor

    @jplogan We're thinking of modifying BuilderStart.swift so that the BuildKit container inherits the user's color environment variables from the host (BUILDKIT_COLORS, NO_COLOR, NOCOLOR). The values will get read and merged into the environment array passed to ProcessConfiguration when the builder container is created.

    For changes to active builders, we're thinking of stopping them and recreating them so the new settings apply. How does that sound?

  6. added a commit that references this issue on Dec 16, 2025
    c22f128
  7. added 3 commits that reference this issue on Jan 20, 2026
    1559e6d
    0099292
    94ba456
  8. added a commit that references this issue on Jan 27, 2026
    8b74a11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions