Skip to content

Instantly share code, notes, and snippets.

@nickyfoto
Forked from wzulfikar/docker-ps-vertical
Created November 24, 2018 17:19
Show Gist options
  • Save nickyfoto/c7f8aee4d059de477fba5cb1a4ae0bd5 to your computer and use it in GitHub Desktop.
Save nickyfoto/c7f8aee4d059de477fba5cb1a4ae0bd5 to your computer and use it in GitHub Desktop.
vertical format for docker ps
export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"
// usage:
docker ps --format="$FORMAT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment