Skip to content

preetmyob/dockolor

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐳 dockolor – Colorized docker ps Output

dockolor is a lightweight plugin that enhances your docker ps experience with color-coded output based on container status. It also replaces common aliases like dps and dpsa if defined.

Features

  • Colors container statuses:
    • 🟒 Up / Running β€” Green
    • 🟑 Paused β€” Yellow
    • πŸ”΄ Exited / Dead β€” Red
  • Preserves the original Docker ps output, just adds color.
  • Replaces dps and dpsa aliases (from the docker plugin) with colored versions.
  • Falls back gracefully if awk is not installed.

image

Installation

Oh My Zsh

Clone the repository into the OhMyZsh plugin directory:

git clone git@github.com:bouteillerAlan/dockolor.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/dockolor

Then add dockolor in you plugin list

plugins=(... dockolor)

Reload your shell:

source ~/.zshrc

Any other way

  • Copy or clone the dockolor.plugin.zsh file
  • Source it in your .zshrc or .bashrc
  • Use the dockolor command in place of the docker ps command
  • You can also add an alias, something like:
myalias() {
  dockolor "$@"
}

Reload your shell:

source ~/.zshrc

Usage

  • dockolor β€” Same as docker ps, but colorized.
  • dps β€” Replaced with dockolor_dps, same as dockolor or docker ps.
  • dpsa β€” Replaced with dockolor_dps -a, same as dockolor -a or docker ps -a.

About

Colorized the output of docker ps

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%