Last active
August 6, 2025 06:11
-
-
Save bahree/8bd0d38f9f3be59f65dc393f5d8f2b0b to your computer and use it in GitHub Desktop.
dockerps
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
| $ nano ~/.bashrc | |
| alias dockerps='docker ps --format "table {{ .Names }}\t{{ .Status }}\t{{ .Ports }}"' | |
| Here is another version with the container ID: | |
| alias dockerps='docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}"' | |
| And then to reload: | |
| $ source ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment