Skip to content

Instantly share code, notes, and snippets.

@ilmoralito
Created February 8, 2021 16:59
Show Gist options
  • Select an option

  • Save ilmoralito/974853c1eb61d3a30f9ec2db5df7f2df to your computer and use it in GitHub Desktop.

Select an option

Save ilmoralito/974853c1eb61d3a30f9ec2db5df7f2df to your computer and use it in GitHub Desktop.
# add docker format to environment
export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"
# list docker containers pretty formatted
docker ps --format=$FORMAT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment