Last active
November 3, 2016 13:04
-
-
Save pascalgrimaud/c8b915e917af8428057a81bd9a2f0789 to your computer and use it in GitHub Desktop.
Docker commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker ps -a with short display | |
| docker ps -a --format "table {{.ID}}\t{{.Status}}\t{{.Names}}" | |
| # remove none image | |
| docker rmi $(docker images | grep "^<none>" | awk '{print $3}') | |
| # remove dangling volume | |
| docker volume rm $(docker volume ls -qf dangling=true) | |
| # docker stats | |
| docker stats $(docker ps --format={{.Names}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment