Skip to content

Instantly share code, notes, and snippets.

@PurpleBabar
Last active December 15, 2017 10:39
Show Gist options
  • Save PurpleBabar/fbc3151af9a72cd7079eeb5581499d69 to your computer and use it in GitHub Desktop.
Save PurpleBabar/fbc3151af9a72cd7079eeb5581499d69 to your computer and use it in GitHub Desktop.
Docker formats available

When using docker ps, here are the formats you can use:

  • {{.ID}}
  • {{.Image}}
  • {{.Command}}
  • {{.RunningFor}}
  • {{.Status}}
  • {{.Ports}}
  • {{.Names}}

docker ps --format {yourFormat}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment