Skip to content

Instantly share code, notes, and snippets.

@bahree
Last active August 6, 2025 06:11
Show Gist options
  • Select an option

  • Save bahree/8bd0d38f9f3be59f65dc393f5d8f2b0b to your computer and use it in GitHub Desktop.

Select an option

Save bahree/8bd0d38f9f3be59f65dc393f5d8f2b0b to your computer and use it in GitHub Desktop.
dockerps
$ 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