This package enhances the Docker output experience by employing a pipeline mechanism. With this feature, you have the ability to customize and apply various color schemes to the output generated by Docker commands. This improves the readability and visual appeal of the output.
You can find all compiled binaries on the releases page.
brew install dldash/core/docker-color-output
sudo add-apt-repository ppa:dldash/core
sudo apt update
sudo apt install docker-color-output
You can download the Windows build from the releases page.
You can customize the color palette to your liking, to do this you need to run docker-color-output
with the -c
flag and specify the path to the configuration file. You can overwrite only the colors you want, the rest will be
used by default.
docker-color-output -c ~/.config/docker-color-output/config.json
Default configuration file:
{
"colors": {
"reset": "\u001b[0m",
"black": "\u001b[0;30m",
"darkGray": "\u001b[1;30m",
"red": "\u001b[0;31m",
"lightRed": "\u001b[1;31m",
"green": "\u001b[0;32m",
"lightGreen": "\u001b[1;32m",
"brown": "\u001b[0;33m",
"yellow": "\u001b[1;33m",
"blue": "\u001b[0;34m",
"lightBlue": "\u001b[1;34m",
"purple": "\u001b[0;35m",
"lightPurple": "\u001b[1;35m",
"cyan": "\u001b[0;36m",
"lightCyan": "\u001b[1;36m",
"lightGray": "\u001b[0;37m",
"white": "\u001b[1;37m"
}
}
Use these bash functions to improve the user experience.
di # alias
docker images [--format] | docker-color-output
dps # alias
docker ps [-a] [--format] | docker-color-output
2.x
.
dcps # alias
docker compose ps | docker-color-output
ds # alias
docker stats [--no-stream] | docker-color-output