Skip to content

Instantly share code, notes, and snippets.

@utsavkesharwani
Forked from stevebakh/docker-ps-clean.sh
Created May 12, 2019 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utsavkesharwani/6aaad48de1da315123c2c2e72ea9ad10 to your computer and use it in GitHub Desktop.
Save utsavkesharwani/6aaad48de1da315123c2c2e72ea9ad10 to your computer and use it in GitHub Desktop.
Formatting of `docker ps` output to strip ports - useful to set as an alias if mapping many ports produces large, wrapped output
docker ps --format "table{{.ID}}\t{{.Names}}\t{{.Image}}\t{{.RunningFor}}\t{{.Status}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment