Skip to content

Instantly share code, notes, and snippets.

@skylock
Forked from jrenggli/docker-top.sh
Created June 19, 2020 13:14
Show Gist options
  • Save skylock/0c156e354137a90ec73d994679d0f49b to your computer and use it in GitHub Desktop.
Save skylock/0c156e354137a90ec73d994679d0f49b to your computer and use it in GitHub Desktop.
List all running docker containers and their resources used
docker stats `docker inspect --format='{{.Name}}' $(sudo docker ps -aq --no-trunc) | sed -e 's/\///g'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment