Skip to content

Instantly share code, notes, and snippets.

@david-martin
Created July 23, 2015 12:04
Show Gist options
  • Select an option

  • Save david-martin/29b4a6a2cec49003c761 to your computer and use it in GitHub Desktop.

Select an option

Save david-martin/29b4a6a2cec49003c761 to your computer and use it in GitHub Desktop.
dtop: docker status for all running containers
function dtop() {
CONTAINER_IDS=$(docker ps | awk '{print $NF}' | grep -v NAMES)
printf "Running 'docker stats' for:\n$CONTAINER_IDS\n..."
docker stats $CONTAINER_IDS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment