Created
February 1, 2019 14:37
-
-
Save Banhawy/a41df577aed8e08c8468c6e8c36b6ac3 to your computer and use it in GitHub Desktop.
[Horizontal Docker Display] #docker
This file contains hidden or 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
# This can be in .zshrc or .bash_profile | |
export FORMAT="\nID\t{{.ID}}\nIMAGE\t{{.Image}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.RunningFor}}\nSTATUS\t{{.Status}}\nPORTS\t{{.Ports}}\nNAMES\t{{.Names}}\n" | |
docker ps --format $FORMAT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment