Skip to content

Instantly share code, notes, and snippets.

@yogeshkumark
Forked from stevebakh/docker-ps-clean.sh
Created April 9, 2021 16:47
Show Gist options
  • Select an option

  • Save yogeshkumark/5b9202c2f0f3d0f341e61fa7490b54f4 to your computer and use it in GitHub Desktop.

Select an option

Save yogeshkumark/5b9202c2f0f3d0f341e61fa7490b54f4 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