docs/build/customize/color-output-controls.md

1.0 KiB

title description keywords
Color output controls Learn how to control the color of BuildKit progress output. build, buildx buildkit, color, terminal

BuildKit and Buildx have support for modifying the colors that are used to output information to the terminal. You can set the environment variable BUILDKIT_COLORS to something like run=123,20,245:error=yellow:cancel=blue:warning=white to set the colors that you would like to use:

Progress output custom colors

Setting NO_COLOR to anything will disable any colorized output as recommended by no-color.org{:target="blank" rel="noopener" class=""}:

Progress output no color

Note

Parsing errors will be reported but ignored. This will result in default color values being used where needed.

See also the list of pre-defined colors{:target="blank" rel="noopener" class=""}.