Created
January 6, 2023 12:11
-
-
Save stever/5861c61e287c62768216240f38e3dd60 to your computer and use it in GitHub Desktop.
Bash alias to list docker processes sorted by name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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