Skip to content

Instantly share code, notes, and snippets.

Kyle Banks KyleBanks

Block or report user

Report or block KyleBanks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@KyleBanks
KyleBanks / docker-stats-json
Created Feb 10, 2017
Returns Docker stats as a JSON Object
View docker-stats-json
docker stats --no-stream \
--format "{\"container\": \"{{ .Container }}\", \"memory\": { \"raw\": \"{{ .MemUsage }}\", \"percent\": \"{{ .MemPerc }}\"}, \"cpu\": \"{{ .CPUPerc }}\"}"
You can’t perform that action at this time.