Skip to content

Instantly share code, notes, and snippets.

@stever
Created January 6, 2023 12:11
Show Gist options
  • Save stever/5861c61e287c62768216240f38e3dd60 to your computer and use it in GitHub Desktop.
Save stever/5861c61e287c62768216240f38e3dd60 to your computer and use it in GitHub Desktop.
Bash alias to list docker processes sorted by name
alias docker_sort='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 2 )'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment