Skip to content

Instantly share code, notes, and snippets.

@ineentho
Created April 1, 2020 08:19
Show Gist options
  • Save ineentho/f1c9cc24cf197f9edb6cf58f7dbf1d53 to your computer and use it in GitHub Desktop.
Save ineentho/f1c9cc24cf197f9edb6cf58f7dbf1d53 to your computer and use it in GitHub Desktop.
docker commands
sudo docker ps --format '{{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}\t{{.Names}}' | sed -E 's/PREFIX/REPLACE/; s/-([0-9a-z]{8})([0-9a-z]{32})/-\1/' | column -t -s $'\t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment