-
-
Save juanitomint/08aa6e3b9bfa7dfb8c91f3be0bc3e13b to your computer and use it in GitHub Desktop.
Shortcut for command line docker ps with a custom format
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
#!/bin/bash | |
# goes in /usr/bin/ | |
# sudo chmod +x after copy | |
docker ps --format "table {{.ID}}\t {{.names}}\t {{.Command}}\t\t {{.Status}}\t" --filter "name=$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment