Dockercolorize π³π
Enhancing Docker output with vibrant colors. Dockercolorize is a command line tool designed to add colors to Docker outputs, making them more visually organized and readable.
π¨βπ» Installation
πΊ Homebrew
# Tap the formula repository
brew tap PunGrumpy/formulas
# Check tap it's working
brew tap-info PunGrumpy/formulas
brew search PunGrumpy/formulas
# Install the formula
brew install dockercolorize
πͺ Aliases
For a smoother user experience, use these aliases to replace the original Docker commands.
βοΈ Configuration
Locate the configuration file in ~/.config/dockercolorize/config.json
and edit the color scheme.
// Default color scheme
{
"color": {
"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"
}
}
π Usage
π‘ docker images
di # alias
docker images [--format] | docker-color-output
π‘ docker ps
dps # alias
docker ps [-a] [--format] | docker-color-output
π‘ docker compose ps
β οΈ The latest version works with docker-compose 2.x
.
dcps # alias
docker compose ps | docker-color-output
π‘ docker stats
β οΈ For the best experience, use the --no-stream
flag. The --no-stream
flag is not supported in Docker Compose.
dstats # alias
docker stats --no-stream | docker-color-output
π‘ docker history
β οΈ It's cannot be used with aliases because it's a subcommand.
docker history [container] [--format] | docker-color-output