Docker Color Output is a lightweight CLI that adds readable, customizable colors to Docker command output. It reads from stdin, applies a YAML ruleset with per-column logic, and writes clean, aligned tables to stdout.
- Cross-platform: macOS, Linux, Windows.
- YAML rules: per-column colors, matches, and thresholds.
- Pipeline-friendly: works as a simple pipe in shell workflows.
Binaries are available on the releases page.
brew install dldash/core/docker-color-outputsudo add-apt-repository ppa:dldash/core
sudo apt update
sudo apt install docker-color-outputDownload the Windows build from the releases page.
docker ps | docker-color-outputdocker images [--format] 2>/dev/null | docker-color-outputNote
On Docker 29+, docker images writes extra output to stderr, so redirect it (2>/dev/null) when piping into docker-color-output.
Pass a custom YAML config with -c:
docker-color-output -c ~/.config/docker-color-output/config.yamlSee internal/config/default.yaml for the full default configuration, including all commands and rules.
Example override:
layout:
headerColor: yellow
rules:
commands:
dockerPs:
rules:
"STATUS":
pipeline:
- type: match
when:
- contains: "Exited"
color: red
default:
color: brownIf you want shortcuts, use the bash aliases in bash/aliases.sh.
Tested with Docker 29.1.3.
di # aliasdocker images [--format] 2>/dev/null | docker-color-outputdps # aliasdocker ps [-a] [--format] | docker-color-outputdcps # aliasdocker compose ps | docker-color-outputds # aliasdocker stats [--no-stream] | docker-color-outputThis project is licensed under the MIT License.




