dockercolorize

module
v1.2.1-0...-4746244 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT

README ΒΆ

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.

GitHub Actions Release License Downloads

πŸ‘¨β€πŸ’» 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 images

πŸ’‘ docker ps
dps # alias
docker ps [-a] [--format] | docker-color-output

docker ps

πŸ’‘ docker compose ps

⚠️ The latest version works with docker-compose 2.x.

dcps # alias
docker compose ps | docker-color-output

docker compose ps

πŸ’‘ 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

Directories ΒΆ

Path Synopsis
cmd
cli
internal
app
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL