Skip to content

Instantly share code, notes, and snippets.

@juanitomint
Last active November 8, 2018 21:38
Show Gist options
  • Save juanitomint/08aa6e3b9bfa7dfb8c91f3be0bc3e13b to your computer and use it in GitHub Desktop.
Save juanitomint/08aa6e3b9bfa7dfb8c91f3be0bc3e13b to your computer and use it in GitHub Desktop.
Shortcut for command line docker ps with a custom format
#!/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